Skip to content
pure-perl DNS resolver with support for timeout
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
benchmark add simple benchmark Nov 22, 2010
lib/Net/DNS releng for 0.12 Mar 12, 2014
t fix mx record handler. Mar 12, 2014
.gitignore add files Nov 19, 2010
Changes releng for 0.12 Mar 12, 2014
MANIFEST.SKIP do not include .gitignore in dist Nov 13, 2013
Makefile.PL Added repository cpan metadata Nov 14, 2013
README releng for 0.10 Apr 17, 2013


    Net::DNS::Lite - a pure-perl DNS resolver with support for timeout

        use Net::DNS::Lite qw(inet_aton);

        # drop-in replacement for Socket::inet_aton
        $Net::DNS::Lite::TIMEOUT = 5; # global timeout variable
        my $addr = inet_aton("");

        # or per-query timeout
        my $addr = inet_aton("", $timeout_in_seconds);

    This module provides a replacement function for Socket::inet_aton, with
    support for timeouts.

    maximum time (in seconds) inet_aton will block (default: 10)

    if set, Net::DNS::Lite will cache the DNS responses internally using the
    supplied cache object. The cache object should support "get", "set", and
    "remove" functions (default: none)

    maximum ttl of the cached entries (in seconds). Only has effect when
    $Net::DNS::Lite::CACHE is set.

    Kazuho Oku

    The module is based on the excellent AnyEvent::DNS by mlehmann.

    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

    See <>

Something went wrong with that request. Please try again.