X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 24 Aug 2010 10:38:15 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: perl: Net::DNS requires Win32::IPHelper
Message-ID: <20100824083815.GO6726@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1282535618.6888.51.camel@YAAKOV04> <AANLkTimGT6cp8z-dAS=YHZM4fcOwi-Fn4xZtDL=tKhWS@mail.gmail.com> <20100823140705.GG6726@calimero.vinschen.de> <1282583279.5256.8.camel@YAAKOV04>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <1282583279.5256.8.camel@YAAKOV04>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 23 12:07, Yaakov S wrote:
> 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.

Ok, right.  I still don't understand why it makes sense to implement
another resolver when the system resolver functions exist, though...


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

