| [reply] |
yes the same server as the script is running is where nslookup succeeds.
| [reply] |
This seem weird. What if you instruct nslookup to
> norecurse
? I suspect that the difference between nslookup's behavior and your script is that nslookup is much more 'determined to return a result', and follows the initial hint to follow up going to the authoritative servers.
Also, try to turn on recursion in Net::DNS::Resolver with
my $res = Net::DNS::Resolver->new(
nameservers => [qw(nnnnn.com xxxxx.com)],
recurse => 1,
debug => 1,
);
Another question that might be useful:
do you see a different behavior when asking the specific nameservers about some hostname for which they are authoritative ?
You might want to play a bit with the nslookup/script pair for checking some other nameservers, that are outside your internal network. That should give you a clue about what to expect.
Hth.
| [reply] [d/l] |