Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hurry up Gethost

by tinman (Curate)
on Mar 24, 2001 at 02:00 UTC ( [id://66754]=note: print w/replies, xml ) Need Help??


in reply to Hurry up Gethost

I'd suggest Net::DNS over gethostbyaddr.. From the man pages of Net::DNS::Resolver that I was able to locate off Google,
tcp_timeout can be used to set the timeout for queries, the default being 120 sec

After using gethostbyaddr for a reporting/log file analysis tool that I wrote not too long ago, I might even suggest a locally cached copy of addresses.. this made a significant difference in the speed of the app for subsequent invocations..

HTH

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://66754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (None)
    As of 2024-04-25 01:21 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found