GithubHelp home page GithubHelp logo

p5-net-dns-lite's Introduction

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

SYNOPSIS
        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("www.google.com");

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

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

CONFIGURATION VARIABLES
  $Net::DNS::Lite::TIMEOUT
    maximum time (in seconds) inet_aton will block (default: 10)

  $Net::DNS::Lite::CACHE
    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)

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

AUTHOR
    Kazuho Oku

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

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

    See <http://www.perl.com/perl/misc/Artistic.html>

p5-net-dns-lite's People

Contributors

kazuho avatar alexm avatar dsteinbrunner avatar fujiwara avatar kazeburo avatar stefb69 avatar tokuhirom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.