Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Net::DNS::Resolver and nameservers

by gam3 (Curate)
on May 13, 2011 at 14:38 UTC ( #904683=note: print w/ replies, xml ) Need Help??


in reply to Net::DNS::Resolver and nameservers

The code Net::DNS::Resolver->new(nameservers => [qw(1 2 3)]; and the code

@nslist = qw(1 2 3); Net::DNS::Resolver->new(nameservers => [@nslist];
are the same, so I think the problem with only the first DNS server being queried is a problem with the Net::DNS::Resolver package or the underlieing library. You might randomize the list of nameservers and reload them in a different order if a request fails.
-- gam3
A picture is worth a thousand words, but takes 200K.


Comment on Re: Net::DNS::Resolver and nameservers
Select or Download Code
Re^2: Net::DNS::Resolver and nameservers
by henzen (Initiate) on May 13, 2011 at 15:14 UTC
    Thanks for the quick response. It looks like this was bad data ('1.1.1.1', '2.2.2.2 3.3.3.3', '...').

    If 1.1.1.1 was dead, it hit '2.2.2.2 3.3.3.3' and soiled itself...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://904683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-09-23 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls