This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl: Net::DNS requires Win32::IPHelper


On Aug 24 09:18, Reini Urban wrote:
> 2010/8/23 Yaakov (Cygwin/X) <yselkowitz@users.sourceforge.net>:
> > On Mon, 2010-08-23 at 16:07 +0200, Corinna Vinschen wrote:
> >> Here's a question:
> >>
> >> Why does the Net::DNS module, which provides only a resolver API, depend
> >> on a Win32-related package at all? ÂCygwin 1.7 provides a BSD compatible
> >> resolver API (res_init, res_query, etc) which should be used, just like
> >> on Linux. ÂDoes the module erroneously treat Cygwin as Windows target?
> >> If so, that should be fixed.
> >
> > Net::DNS does not bind libresolv on *NIX; it does its own parsing
> > of /etc/resolv.conf. ÂOn Win32, it uses Win32::IPHelper's bindings of
> > GetNetworkParams.
> >
> > So this is YA resolver implementation. ÂWhen it came to BIND's liblwres,
> > you asked that it use the Windows APIs in order to ore closely match our
> > libresolv implementation and not require an /etc/resolv.conf. ÂThe same
> > would apply here as well.
> 
> The real problem is that there exists a native cygwin resolver module
> Net::DNS::Resolver::Cygwin, which is just not used.
> It does not need Win32::IPHelper and Win32::API, it just reads the relevant
> /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/
> registry entries.

Hmm, considering that this implements a resolver from scratch (without
using the res_foo resolver functions), the IPHelper API sounds the
better way to implement this.  IMHO.  YMMV.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]