dig and the searchlist

Barry Margolin barmar at alum.mit.edu
Mon Sep 5 20:00:00 UTC 2005


In article <dfhr8k$1hjb$1 at sf1.isc.org>, Uwe Gansert <ug at suse.de> wrote:

> Hi,
> 
> I use bind 9.3.1 on i386 platform.
> 
> in my resolv.conf I have the entry "search suse.de".
> So if I do=20
> > dig +search taylor
> and I sniff with tcpdump, I can see the query for taylor.suse.de and that's=
> =20
> correct and gets resolved.
> 
> But if I do a
> > dig +search www.taylor
> then with tcpdump I can see:
> > 36052+ A? www.taylor. (28)
> > 36052 NXDomain 0/1/0 (103)
> 
> the answer is NXDOMAIN and the search list is not used anymore. Dig does no=
> t=20
> try "www.taylor.suse.de" what I would expect because of the "+search".
> Can someone explain me why this is the case?

The searchlist is only used if the name has fewer than ndots dots.  Try:

dig +search +ndots=2 www.taylor

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***



More information about the bind-users mailing list