Skip to content

Net::DNS::Simple new version

Added option which allows user to specify distinct nameservers to run the name resolution. Net::DNS::Simple documentation is updated.

use Net::DNS::Simple;
my %config = ( 
    nameservers => ['192.168.86.7', '192.168.86.8'],
    recurse => 0,
    debug => 0
);
my $res = Net::DNS::Simple->new("kaiux.com", "A", %config);

This feature is supported in Net::DNS::Resolver by default.

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.