I have a problem where some hosts in one of our zone files resolve while others do not. I do not see any syntax errors and out of ideas on where to look. The zone file for another domain is pretty much the same but all of its hosts resolve. Does order matter?
In the first zone file below, intranet, ftp and dev will not resolve while www and mail will. In the second, everything resolves. I'm pretty green on named, but one thing I see is that in the SOA record in the first, admin.foo.com matches the domain while in the second it doesn't.
Any advice on how to troubleshoot this?
$ttl 38400
foo.com. IN SOA server.bar.com. admin.foo.com. (
1204064234
10800
3600
604800
38400 )
foo.com. IN NS 192.168.1.2
foo.com. IN A 192.168.1.2
www.foo.com. IN A 192.168.1.2
intranet.foo.com. IN A 192.168.1.2
mail.foo.com. IN MX 0 192.168.1.3
mail.foo.com. IN A 192.168.1.3
ftp.foo.com. IN A 192.168.1.2
dev.foo.com. IN A 192.168.1.6
$ttl 38400
foollc.com. IN SOA server.bar.com. admin.foo.com. (
1202748448
10800
3600
604800
38400 )
foollc.com. IN NS 192.168.1.2
www.foollc.com. IN A 192.168.1.2
ftp.foollc.com. IN A 192.168.1.2
mail.foollc.com. IN A 192.168.1.3
foollc.com. IN A 192.168.1.2
mail.foollc.com. IN MX 0 192.168.1.3
intranet.foollc.com. IN A 192.168.1.2
secure.foollc.com. IN A 192.168.1.2
dev.foollc.com. IN A 192.168.1.6