dig doesn't seem to honour search/domain in /etc/resolv.conf

Barry Margolin barmar at bbnplanet.com
Thu Mar 9 16:15:52 UTC 2000


In article <20000309054005.11922.qmail at yusufg.portal2.com>,
Yusuf Goolamabbas  <yusufg at outblaze.com> wrote:
>I had always used dig with FQDN's and for once I tried resolving a
>partial name expecting dig to append the domain listed in
>/etc/resolv.conf. dig would always return the following
>
>;; AUTHORITY SECTION:
>.                       1D IN SOA       A.ROOT-SERVERS.NET.
>hostmaster.internic.NET. (
>                                        2000030800      ; serial
>                                        30M             ; refresh
>                                        15M             ; retry
>                                        1W              ; expiry
>                                        1D )            ; minimum
>
>whereas nslookup would do the right thing. Is this expected behaviour
>or is this something I have to tweak to get it right

Dig is intended to be a lower-level, simple DNS query tool.  It will query
multiple nameservers if it times out, like the normal resolver, but it
always queries with the precise name you gave it, rather than performing
the search algorithm.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list