DNS::Unbound::IOAsync - DNS::Unbound for IO::Async
my $loop = IO::Async::Loop->new(); my $unbound = DNS::Unbound::IOAsync->new($loop); $unbound->resolve_async("perl.org", "A")->then( sub { my $result = shift; # ... } )->finally( sub { $loop->stop() } ); $loop->run();
This class provides native IO::Async compatibility for DNS::Unbound.
Note that this class’s new() requires an IO::Async::Loop instance to be passed. (See the "SYNOPSIS".)
new()
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.