nslookup domain search order

John_Chen at acml.com John_Chen at acml.com
Tue Sep 26 19:37:58 UTC 2000




On Unix you can control this by adding option ndots in
resolv.conf(check man page), but I havn't seen any way to control
NT or 95 yet.






sandra at ccuec.unicamp.br (Sandra R. de Souza -CONECT-#200502# ) on
09/26/2000 02:57:26 PM
To:   bind-users at isc.org
cc:    (bcc: John Chen/New York/ACMC)

Subject:  nslookup domain search order




Hi,

   I have a doubt about how nslookup works.
   When I try to resolve a name without putting the domain after
it with nslookup , the dns server asks before to a root name
server,
and after doing that it asks to my name server, appending the
domain to the
name I have asked.
   Why is the name server doing that? The correct action is to
look up in my
domain, and if it hasn't fount it ask the roots name server?
   Example :


# more /etc/resolv.conf
domain test.machine.br
search test.machine.br machine.br
nameserver xxx.xxx.xxx.xxx


# nslookup (on my desktop)
Default Server:  ns.test.machine.br
Address:  xxx.xxx.xxx.xxx

> rachel.test
Server:  ns.test.machine.br
Address:  xxx.xxx.xxx.xxx

*** ns.test.machine.br can't find rachel.test: Non-existent
host/domain

This is the output from tcpdump on  my name server interface :

15:51:27.537605 test-gw.machine.br.2871 > ns.domain: 5536+ A?
rachel.test. (30)  <<<<<<<
                                   ^^^^^^^^^^^^^^
                            why this first?

15:51:28.300632 ns.domain > test-gw.machine.br.2871: 5536
NXDomain* 0/1/0 (106)
15:51:28.303246 test-gw.machine.br.2871 > ns.domain: 25625+ A?
rachel.test.test.machine.br. (47)
15:51:28.303571 ns.domain > test-gw.machine.br.2871: 25625
NXDomain* 0/1/0 (112)
15:51:28.305822 test-gw.machine.br.2871 > ns.domain: 10964+ A?
rachel.test.machine.br. (41)
15:51:28.306111 ns.domain > test-gw.machine.br.2871: 10964
NXDomain* 0/1/0 (106)


-----
:-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-

 Sandra Regina de Souza                Internet:
sandra at cuecc.unicamp.br
 Suporte Redes - Centro de Computacao
 Universidade Estadual de Campinas     Fone    : (019) 788-2239
 Campinas - SP - Brasil
:-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-):-









______________________________________________________________________

The information contained in this transmission may contain
privileged and confidential information and is intended only
for the use of the person(s) named above. If you are not the
intended recipient,  or an employee or agent responsible for
delivering this message to the intended recipient,  any review,
dissemination, distribution or duplication of this communication
is strictly prohibited. If you are not the intended recipient,
please contact the sender immediately by reply e-mail and destroy
all copies of the original message.





More information about the bind-users mailing list