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