in reply to using Net::DNS::Async
I've never used this module before, but I dug briefly through the source and it looks like you can specify nameservers by passing it in within a hash in the add method. The documentation says to pass it a callback there, but if you give it a hashref instead, it will set nameservers according to whatever you specify.
Maybe something like this:
my $res = new Net::DNS::Async(..); $res->add( { Nameserver => [$server1], Callback => \&callback, }, @params );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using Net::DNS::Async
by goose722 (Initiate) on Feb 29, 2012 at 18:13 UTC | |
by Riales (Hermit) on Feb 29, 2012 at 18:23 UTC |