Hi all,<br><br>I have named 9.4.3-P3 running on 2 linux systems(A & B).<br>A has recursion disabled and the B has recursion enabled.<br><br>From a third linux system, I try name resolution using dig or nslookup.<br>In this system, I have resolv.conf as:<br>
<br>nameserver A<br>nameserver B<br><br>When I try to resolve names, using dig (with +notrace) and ping, I observe that both these utilites, upon getting a referral discontinues the resolution process. <br><br># dig <a href="http://foo.example.com/" target="_blank">foo.example.com</a>.<br>
<br>; <<>> DiG 9.3.2 <<>> <a href="http://foo.example.com/" target="_blank">foo.example.com</a>.<br>;; global options:  printcmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1004<br>
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0<br><br>;; QUESTION SECTION:<br>;<a href="http://foo.example.com/" target="_blank">foo.example.com</a>.               IN      A<br><br>;; AUTHORITY SECTION:<br>
.                       83311   IN      NS      <a href="http://e.root-servers.net/" target="_blank">e.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://f.root-servers.net/" target="_blank">f.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://g.root-servers.net/" target="_blank">g.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://h.root-servers.net/" target="_blank">h.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://i.root-servers.net/" target="_blank">i.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://j.root-servers.net/" target="_blank">j.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://k.root-servers.net/" target="_blank">k.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://l.root-servers.net/" target="_blank">l.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://m.root-servers.net/" target="_blank">m.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://a.root-servers.net/" target="_blank">a.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://b.root-servers.net/" target="_blank">b.root-servers.net</a>.<br>.                       83311   IN      NS      <a href="http://c.root-servers.net/" target="_blank">c.root-servers.net</a>.<br>
.                       83311   IN      NS      <a href="http://d.root-servers.net/" target="_blank">d.root-servers.net</a>.<br><br>;; Query time: 4 msec<br>;; SERVER: xx.xxx.xxx.xxx#53(xx.xxx.xxx.xxx)<br>;; WHEN: Sat Feb 13 21:09:39 2010<br>
;; MSG SIZE  rcvd: 244<br><br>#<br><br><br>That is, when name server A returns a referral, dig & ping donot try to query the name server, i.e. B, specified in resolv.conf.<br><br>But, when I use nslookup, I see that it whenever it gets a referral, it queries the next name server specified in resolv.conf.<br>
This is a desired behaviour as nslookup has nofail option as default (specified in the man page of nslookup).<br><br>I would like have "ping" querying the next name sever in the event of receiving a referral from the first name sever.<br>
Can anyone suggest whether this is feature is really not supported in dig and ping?<br><br>Thanks in advance!<br><br>Regards,<br>Kalpesh.<br>