host works, dig doesn't - BIND 9.3.2 puzzle
Mark Andrews
Mark_Andrews at isc.org
Thu Aug 10 23:11:46 UTC 2006
> After upgrading from BIND8 to BIND9.3.2 on a Debian testing system
> which serves a home network, I've been plagued with problems. The
> BIND9.3.2 configuation appears to be correct, and forwards to my
> ISP's nameservers. named-checkconf and named-checkzone give clean
> reports. I've installed the resolvconf package.
>
> /etc/resolv.conf:
> nameserver 127.0.0.1
> search emsquirt.com
>
> /etc/nsswitch.conf:
> ...
> hosts: files dns
> ...
>
> Here's the puzzle:
> ***host resolves local names as expected:
> markj at redhorse:~$ host redhorse
> redhorse.emsquirt.com has address 192.168.0.1
>
> ***dig resolves the fully qualified host name:
> markj at redhorse:~$ dig @127.0.0.1 redhorse.emsquirt.com +short
> 192.168.0.1
>
> ***dig resolves the address:
> markj at redhorse:~$ dig @127.0.0.1 -x 192.168.0.1 +short
> redhorse.emsquirt.com.
>
> ***dig fails for the unqualified name:
> markj at redhorse:~$ dig redhorse
>
> ; <<>> DiG 9.3.2 <<>> redhorse
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 29847
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;redhorse. IN A
>
> ;; AUTHORITY SECTION:
> . 1721 IN SOA A.ROOT-SERVERS.NET. NSTLD.VER
> ISIGN-GRS.COM. 2006081000 1800 900 604800 86400
>
> ;; Query time: 6 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Thu Aug 10 11:20:30 2006
> ;; MSG SIZE rcvd: 101
>
>
> What am I missing? TIA!
This really is a RTFM. You have to tell dig to search.
Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list