DNS::Unbound::AnyEvent - DNS::Unbound for AnyEvent
my $cv = AnyEvent->condvar(); my $unbound = DNS::Unbound::AnyEvent->new(); $unbound->resolve_async("perl.org", "A")->then( sub { my $result = shift; # ... } )->finally($cv); $cv->recv();
This class provides native AnyEvent compatibility for DNS::Unbound.
To install DNS::Unbound, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DNS::Unbound
CPAN shell
perl -MCPAN -e shell install DNS::Unbound
For more information on module installation, please visit the detailed CPAN module installation guide.