> How would I go about to set for example a timeout setting for how long > the script should wait for a response, and is it possible to do more > than one DNS query at the time? Any suggestions and/or ideas would be > very much appriciated.
A couple thoughts: 1- are there other nameservers that you can query instead of the slow one? You might consider even using a non-authoritative server if it is faster. Of course, it may still have to query the slow server so this might actually make it slower still. However, if the non-auth server has the info cached then it may be faster in the long run. 2- Are many of the requests coming from the same domain? If so, you could do a complete lookup of that domain and cache that info instead of looking them up one at a time. That can be done two ways: A- with an 'ls -d' nslookup function (this is often blocked by the server, though), or B- 'set type=any' and then 'domain.com' - you'll need to parse out the A records. _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs