Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: micheal.espinola [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.58
  • 0.59
Fixed in: (no value)



Subject: time-out issue on Win32 with ActivePerl 5.8
Net-DNS-0.59 ActiveState Perl v5.8.8 build 817 [257965] Microsoft Windows 2003 Enterprise Edition [Version 5.2.3790] Please pardon my apparent lack of module expertise, but I believe I have identified an issue running Net-DNS versions 0.58 and 0.59 on Win32 with ActivePerl 5.8. I am one of the project organizers for Anti-Spam SMTP Proxy (ASSP) project on SourceForge. We use Net-DNS for various DNS record checks. Since 0.58, Net-DNS has become usable. 0.59 behaves the same, if not worse. 0.57 and earlier versions work fine. The issue as it is apparent to me as an administrator, is that record checks time-out after 45-60 seconds. I have confirmed this with many other admins using the same environment that I am reporting about. From what I have been able to gather, the issue does not exist in *nix or OS X. Example debug output: ---------- Nov-1-06 23:04:17 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com myquery: doing A query on yahoo.com Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com myquery: yahoo.com A lookup error: query timed out Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com myquery: will set error condition. Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com evaluate_mechanism: +a(/24) returned Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com returning temporary error: DNS error while looking up yahoo.com A: query timed out Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com header_comment: spf_source = local policy Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: user@domain.tld debug: || reveles81 yahoo.com header_comment: spf_source_type = full-explanation ---------- This log may appear dated, because that was the last time I ran a version of Net-DNS higher than 0.57. Since then I have been gather information from other people that this issue has been effecting. Thanks for any help or advise you can provide. Please let me know if I can provide any additional details. Thanks, Micheal Espinola Jr
Subject: Re: [rt.cpan.org #23437] time-out issue on Win32 with ActivePerl 5.8
Date: Fri, 17 Nov 2006 17:20:03 +0100
To: bug-Net-DNS [...] rt.cpan.org
From: "Olaf M. Kolkman" <olaf [...] dacht.net>
Hmm there is very little info to actually work from. So there is a particular change that could have triggered this, from CHANGES: Net::DNS::Resolver now deals gracefully with persistent sockets that got disconnected. It will first try to connect again to the socket and if that fails it will try to connect to the next available nameserver. tcp_timeout() is the parameter that determines how long to wait during a reconnect. You may want to play with that parameter (using $res->tcp_timeout (1)) to see if performance improves. If it does then my advice would be to not use TCP but use persistent UDP in your code. The other change that, I suppose, is not related to this is: Hanno Stock optimized the method to get the list of available interfaces in Win32. I have only done very rudimentary tests on my Windows XP system. On the other hand this is the only win32 dependent change. You could test if replacing lib/Net/DNS/Resolver/Win32.pm in the 0.59 version by the version from 0.57. (You can find that one here: http://www.net-dns.org/svn/net-dns/release/0.57/lib/Net/DNS/Resolver/ Win32.pm ) If this test causes an improvement I know where to look (That module contains mostly contributed code, so it is a challenge to get to the bottom of this.) --Olaf On 17Nov 2006, at 5:04 PM, Micheal Espinola Jr via RT wrote: Show quoted text
> > Fri Nov 17 11:04:40 2006: Request 23437 was acted upon. > Transaction: Ticket created by michealespinola > Queue: Net-DNS > Subject: time-out issue on Win32 with ActivePerl 5.8 > Broken in: 0.58, 0.59 > Severity: Critical > Owner: Nobody > Requestors: micheal.espinola@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=23437 > > > > Net-DNS-0.59 > ActiveState Perl v5.8.8 build 817 [257965] > Microsoft Windows 2003 Enterprise Edition [Version 5.2.3790] > > Please pardon my apparent lack of module expertise, but I believe I > have > identified an issue running Net-DNS versions 0.58 and 0.59 on Win32 > with > ActivePerl 5.8. > > I am one of the project organizers for Anti-Spam SMTP Proxy (ASSP) > project on SourceForge. We use Net-DNS for various DNS record checks. > > Since 0.58, Net-DNS has become usable. 0.59 behaves the same, if not > worse. 0.57 and earlier versions work fine. > > The issue as it is apparent to me as an administrator, is that record > checks time-out after 45-60 seconds. I have confirmed this with many > other admins using the same environment that I am reporting about. > From > what I have been able to gather, the issue does not exist in *nix > or OS X. > > Example debug output: > > ---------- > Nov-1-06 23:04:17 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com myquery: doing A > query on yahoo.com > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com myquery: > yahoo.com > A lookup error: query timed out > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com myquery: will > set > error condition. > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com > evaluate_mechanism: +a(/24) returned > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com returning > temporary error: DNS error while looking up yahoo.com A: query > timed out > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com header_comment: > spf_source = local policy > Nov-1-06 23:04:37 68.142.199.33 <reveles81@yahoo.com> to: > user@domain.tld debug: || reveles81 yahoo.com header_comment: > spf_source_type = full-explanation > ---------- > > This log may appear dated, because that was the last time I ran a > version of Net-DNS higher than 0.57. Since then I have been gather > information from other people that this issue has been effecting. > > Thanks for any help or advise you can provide. Please let me know > if I > can provide any additional details. > > Thanks, > > Micheal Espinola Jr
------------------------------------------------------ Ik dacht net... heel even maar.
Download PGP.sig
application/pgp-signature 227b

Message body not shown because it is not plain text.

From: micheal.espinola [...] gmail.com
On Fri Nov 17 11:21:11 2006, olaf@dacht.net wrote: Show quoted text
> Hmm there is very little info to actually work from.
I wish I could be more forthcoming with details. I will try to test what you recommended as well as talk to a developer about the parameters that you mentioned. Thanks!
On Fri Nov 17 12:26:19 2006, michealespinola wrote: Show quoted text
> On Fri Nov 17 11:21:11 2006, olaf@dacht.net wrote:
> > Hmm there is very little info to actually work from.
> > I wish I could be more forthcoming with details. I will try to test > what you recommended as well as talk to a developer about the parameters > that you mentioned.
Have you performed said test? Any positive or negative change in behavior resulting from that?
Closing ticket. Never got an answer on the question if parameter tweaking helped.