AnyEvent::DNS::Nameserver - DNS server class using AnyEvent
use AnyEvent::DNS::Nameserver; my $nameserver = new Net::DNS::Nameserver( LocalAddr => ['192.168.1.1' , '127.0.0.1' ], LocalPort => "53", ReplyHandler => \&reply_handler, Verbose => 1, Truncate => 0 ); $nameserver->main_loop;
Net::DNS::Nameserver doesn't work with AnyEvent so I wrote this module in honor of Net::DNS::Nameserver
AnyEvent::DNS::Nameserver try to be compatible with all the methods and features of Net::DNS::Nameserver
You can find more information and usage from Net::DNS::Nameserver
AnyEvent::DNS::Nameserver only support udp query and answer by now
https://github.com/sjdy521/AnyEvent-DNS-Nameserver
Net::DNS::Nameserver
sjdy521, <sjdy521@163.com>
Copyright (C) 2014 by Perfi
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install AnyEvent::DNS::Nameserver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::DNS::Nameserver
CPAN shell
perl -MCPAN -e shell install AnyEvent::DNS::Nameserver
For more information on module installation, please visit the detailed CPAN module installation guide.