I'm pretty new to configuring BIND, and I'm having a few issues with the configuration I'm using. I've googled for going on a week now, and either I can't figure out the proper search terms to use, or I'm getting conflicting information. I'm wondering if any DNS gurus out there can glance through my configuration (pasted below) and see if there is A) an obvious solution to my two listed issues, and B) anything else you see that is configured incorrectly? I'm on CentOS 6.4 x64, and am using BIND 9.8.2. It should be obvious that I've substituted example.com for our real domain name in the text below.
- I'd like internal clients to be able to resolve
www.example.com(our externally served web site). However, I am not clear on how to do this, when that is the root domain of my internal clients. Is this even possible? For now, I've just told employees that they must use
www.example.comto access our external web site from inside our network.
The zone file for
example.com looks like this:
$ORIGIN . $TTL 600 ; 10 minutes example.com IN SOA ns1.example.com. root.example.com. ( 5 ; serial 604800 ; refresh (1 week) 86400 ; retry (1 day) 2419200 ; expire (4 weeks) 604800 ; minimum (1 week) ) NS ns1.example.com. A 10.2.2.44 $TTL 3600 ; 1 hour MX 1 ASPMX.L.GOOGLE.COM. MX 5 ALT1.ASPMX.L.GOOGLE.COM. MX 5 ALT2.ASPMX.L.GOOGLE.COM. MX 10 ASPMX2.GOOGLEMAIL.COM. MX 10 ASPMX3.GOOGLEMAIL.COM. $ORIGIN example.com. $TTL 600 ; 10 minutes myserver A 10.2.2.5 test A 10.2.2.45 www A 220.127.116.11 // externally hosted www server