GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::DNS::LITE (3)

.ds Aq ’

NAME

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

CONTENTS

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

CW$Net::DNS::Lite::TIMEOUT

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

CW$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)

CW$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>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::DNS::LITE (3) 2014-03-12

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.