Skip Menu |

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

Report information
The Basics
Id: 35062
Status: resolved
Priority: 0/
Queue: Net-Nslookup

People
Owner: darren [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.17
Fixed in: 2.00



Subject: patch for Win32
Another place for file 'hosts' on Windows, better error message. P.S. Also in dist 1.17 Nslookup.pm has $VERSION = 1.16; -- Alexandr Ciornii, http://chorny.net
Subject: nslookup.t.patch
--- nslookup.t.dist Wed Apr 2 18:07:46 2008 +++ nslookup.t Tue Apr 15 14:37:51 2008 @@ -6,6 +6,7 @@ my @windows_hosts_file_locations = qw( c:/windows/hosts c:/winnt/system32/hosts + C:/WINDOWS/system32/drivers/etc/hosts ); use Net::Nslookup; @@ -24,7 +25,7 @@ # Populate %hosts unless (open HOSTS, $hostfile) { - plan skip_all => "Can't open /etc/hosts: $!"; + plan skip_all => "Can't open $hostfile: $!"; } while (<HOSTS>) {
Subject: Re: [rt.cpan.org #35062] patch for Win32
Date: Tue, 15 Apr 2008 10:34:52 -0400
To: Alexandr Ciornii via RT <bug-Net-Nslookup [...] rt.cpan.org>
From: Darren Chamberlain <dlc [...] sevenroot.org>
* Alexandr Ciornii via RT <bug-Net-Nslookup at rt.cpan.org> [2008/04/15 07:41]: Show quoted text
> Another place for file 'hosts' on Windows, better error message.
Excellent, thanks. I'll apply and make a new release soon. Show quoted text
> P.S. Also in dist 1.17 Nslookup.pm has $VERSION = 1.16;
Oops. Again, thanks. (darren) -- Libraries will get you through times of no money better than money will get you through times of no libraries. -- Kate R. Mutch
Download signature.asc
application/pgp-signature 197b

Message body not shown because it is not plain text.

The upcoming version 2.0 of Net::Nslookup no longer uses the system's hosts file, as it was a fairly problematic, and too clever for its own good.
This should be fixed in version 2.0.