delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/23/13:08:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-50.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Subject: Re: perl: Net::DNS requires Win32::IPHelper
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
To: cygwin <cygwin AT cygwin DOT com>
In-Reply-To: <20100823140705.GG6726@calimero.vinschen.de>
References: <1282535618 DOT 6888 DOT 51 DOT camel AT YAAKOV04> <AANLkTimGT6cp8z-dAS=YHZM4fcOwi-Fn4xZtDL=tKhWS AT mail DOT gmail DOT com> <20100823140705 DOT GG6726 AT calimero DOT vinschen DOT de>
Date: Mon, 23 Aug 2010 12:07:59 -0500
Message-ID: <1282583279.5256.8.camel@YAAKOV04>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.


Yaakov



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019