The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 for resolve_async().

  • Returned promises subclass Mojo::Promise (rather than Promise::ES6) by default.