I encountered an odd problem, that has to do with performing a simple hostname lookup on the server itself. The server will not lookup hostnames, that does not have a zone on the server. However, it does ping (and lookup) the same address. What is wrong? How is this even possible? The following example is the FreeBSD 10 in question.
The following example is FreeBSD 9. This just works.
The two servers uses the same configuration of BIND and is hosted in the same data center.
Code:
# host google.dk
Host google.dk not found: 3(NXDOMAIN)
# ping google.dk
PING google.dk (216.58.209.227): 56 data bytes
64 bytes from 216.58.209.227: icmp_seq=0 ttl=53 time=108.368 ms
64 bytes from 216.58.209.227: icmp_seq=1 ttl=53 time=109.097 ms
64 bytes from 216.58.209.227: icmp_seq=2 ttl=53 time=108.031 ms
Code:
$ host google.dk
google.dk has address 216.58.209.227
google.dk has IPv6 address 2a00:1450:4009:80b::2003
google.dk mail is handled by 50 alt4.aspmx.l.google.com.
google.dk mail is handled by 30 alt2.aspmx.l.google.com.
google.dk mail is handled by 10 aspmx.l.google.com.
google.dk mail is handled by 40 alt3.aspmx.l.google.com.
google.dk mail is handled by 20 alt1.aspmx.l.google.com.
The two servers uses the same configuration of BIND and is hosted in the same data center.