Skip Menu |

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

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

People
Owner: rt-cpan [...] triv.org
Requestors: net-dns-bug [...] oak-wood.co.uk
Cc:
AdminCc:

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



Subject: Windows registry lookups fail
Windows registry lookup of nameservers and searchlist fails on this machine (Win2K). HKLM\system\currentcontrolset\services\tcpip\parameters\nameserver is empty here. The value is found in HKLM\system\currentcontrolset\services\tcpip\parameters\interfaces\{string_looks_like_it_may_be_a_mac_address}\nameserver Problem is in the res_init_microsoft() code in Net\DNS\Resolver.pm E:\>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail)
Subject: Environment variables (eg RES_NAMESERVERS) not used under Windows
The environmental variables, such as RES_NAMESERVERS, used by Net::DNS are not read under Windows. This prevents using environment variables as a work around for bugs 1191 and 1819. This patch to Net::DNS::Resolver.pm corrects the problem: 222c222,224 < --- Show quoted text
> > read_env(); >
[guest - Tue Nov 26 04:30:20 2002]: Show quoted text
> The environmental variables, such as RES_NAMESERVERS, used by
Net::DNS Show quoted text
> are not read under Windows. This prevents using environment variables > as a work around for bugs 1191 and 1819. > > This patch to Net::DNS::Resolver.pm corrects the problem: > > 222c222,224 > < > ---
> > > > read_env(); > >
You should be aware that windows support is currently known to be broken, and until a windows user comes up and fixes it, it will most likely continue to be broken. I've applied your change. -- Chris Reinhardt ctriv@dyndns.org Systems Architect Dynamic DNS Network Services http://www.dyndns.org/