in reply to Re^5: Net::DNS::Resolver v0.61 output
in thread Net::DNS::Resolver v0.61 output

You will not be able to access these BIND servers b/c they are protected by a firewall. The script is running on a server inside the firewall as is my nslookup command.

Replies are listed 'Best First'.
Re^7: Net::DNS::Resolver v0.61 output
by Krambambuli (Curate) on Oct 24, 2007 at 20:50 UTC
      yes the same server as the script is running is where nslookup succeeds.
        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.

        Krambambuli
        ---
        enjoying Mark Jason Dominus' Higher-Order Perl