DNS::Unbound::Mojo - DNS::Unbound for Mojolicious
my $unbound = DNS::Unbound::Mojo->new(); $unbound->resolve_p("perl.org", "A")->then( sub { my $result = shift; # ... } )->wait();
This class provides native Mojolicious compatibility for DNS::Unbound.
In particular:
resolve_p() is an alias for resolve_async().
resolve_p()
resolve_async()
Returned promises subclass Mojo::Promise (rather than Promise::ES6) by default.
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.