Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 24343
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: aotoole [...] nauticom.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Possible Bug & Question
Date: Fri, 12 Jan 2007 14:18:35 -0500
To: <bug-Net-DNS [...] rt.cpan.org>
From: "Alan O'Toole" <aotoole [...] nauticom.net>
Hello, I am wondering if you have had any issues with "drbcheck". This is a script that is hosted at: http://moensted.dk/spam/. This script is basically a spam query tool that uses Net::DNS. The issue is when this script is ran on a machine that runs Net::DNS version 0.58, it will run but not resolve domains or IPs. The resolver seems unable to resolve the domains. (Perl -v = v5.6.1, FreeBSD 6.2) But on a machine (FreeBSD 6.2, Perl -v = v5.8.8, Net::DNS = 0.53) the script works correctly. I was just really wondering if you have seen this before or have any advice. Thank you, Alan O'Toole Systems Administrator Nauticom Internet Services - An NPSI Company 2591 Wexford-Bayne Road, Suite 400 Sewickley, PA 15143 Tel: 724-933-9857 Fax: 724-449-6020 Email: <mailto:aotoole@nauticom.net> aotoole@nauticom.net Web: <http://www.nauticom.net> www.nauticom.net
Finally. I found the time to get to the bottom of this. It turns out that the following line in occassionally locked up for more than 10-20 seconds. $::RESOLVER->nameservers(@dns,"127.0.0.1") if @dns; # set other if apropiate This happened when @dns contained an UNDEF value (so if @dns evaluates to true). This triggered the resolver to do a bunch of unnecessary lookups for this "UNDEF" value and get all confused. There is a fix in the forthcoming 0.62, the script now returns within about 6-7 seconds consistently.