A resolver question

Barry Margolin barmar at bbnplanet.com
Tue Feb 15 21:03:18 UTC 2000


In article <38A974E4.430C4713 at hydro.com>,
Terje Opsahl  <Terje.Opsahl at hydro.com> wrote:
>I have a host registrated as this:
>host-name.company.com.    IN A     1.2.3.4
>
>My computer has is in the domain unit.comany.com.
>
>When the I trye to resolve the address of host-name.company.com. by just
>using the short name, I got the rigth answer of one or another reason.
>>nslookup host-name
>
>I traced the traffic between my computer and the DNS.
>In the first query the resolver added my domain information to the name
>(host-name.unit.company.com).
>And reseived an negative answer from the DNS.
>
>Then the resolver sendt a new qurery to the DNS but it stripped away the
>unit part of my domain (host-name.company.com).
>And reseived the address.
>
>Do anyone know if this is the behaviour of all resolvers ??

No.  Resolvers should only try the domains you have explicitly specified in
the machine's configuration.  The above behavior would be correct if your
/etc/resolv.conf contains:

search unit.company.com company.com

Older resolvers, when given a resolv.conf containing:

domain unit.company.com

would act as if it contained:

search unit.company.com company.com com

But this is considered poor design and they're not supposed to do this any
more.

-- 
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