From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24544 invoked by alias); 22 Jan 2009 08:57:23 -0000 Received: (qmail 24532 invoked by uid 22791); 22 Jan 2009 08:57:22 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Jan 2009 08:57:18 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id F122B6D4189; Thu, 22 Jan 2009 09:57:07 +0100 (CET) Date: Thu, 22 Jan 2009 08:57:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [ITP] bind-9.6.0-1 Message-ID: <20090122085707.GA11604@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <4973A7A8.9020301@users.sourceforge.net> <20090121170810.GK20104@calimero.vinschen.de> <4977594F.3060202@users.sourceforge.net> <20090121173750.GL20104@calimero.vinschen.de> <49776228.4070903@users.sourceforge.net> <20090121182420.GN20104@calimero.vinschen.de> <49776FEC.6030503@users.sourceforge.net> <20090121193320.GO20104@calimero.vinschen.de> <4977AB8A.90003@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4977AB8A.90003@users.sourceforge.net> User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2009-01/txt/msg00101.txt.bz2 On Jan 21 17:11, Yaakov (Cygwin/X) wrote: > Corinna Vinschen wrote: > > I'm not asking to use the resolver lib. I'm asking that the resolver > > code in bind's libs uses the same method to fetch nameserver and > > domain information as Cygwin's default resolver does. > > You could just as easily make the same argument on Linux: glibc already > includes a resolver lib, so why shouldn't BIND use it? I have yet to > see a Linux distribution patch bind to use libresolv, and I see little > difference between using libresolv and copying (part of) minires into BIND. Is my English really so bad? I'm not (NOT) asking that bind uses the minires/Cygwin resolver. I'm just talking about the methods used to fetch resolver information. On Linux, the resolver in glibc and the resolver code in BIND are using the same technique. Which is, fetch the information from /etc/resolv.conf. That file is the only source of information on Linux anyway. On Cygwin, the resolver code in minires/Cygwin is right now using a different technique than the resolver code in BIND. Minires/Cygwin uses the Win32 function GetNetworkParam() if /etc/resolv.conf does not exist. The idea is that you enhance the BIND resolver code to do the same: Use /etc/resolv.conf if it exists. But if not, use GetNetworkParam() to fetch the same information. And that's a big difference since the user doesn't have to duplicate this information, especially if it changes. And using GetNetworkParam is really simple. An #ifdef __CYGWIN__ with about 30 lines of code. > > Which is basically > > > > - use /etc/resolv.conf if available > > - otherwise, use Windows' GetNetworkParam() function. > > You asked originally if it was feasible to do so. There is a Windows > version of BIND, so perhaps it is possible, but AFAICS accomodating both > would be difficult to maintain. If we're going to expect every Cygwin > user to maintain an /etc/fstab, I really don't see why we can't expect > those few who want to use BIND to maintain an /etc/resolv.conf. Apples/Oranges. POSIX mount points don't exist anywhere in Windows, resolver information does. Yes, /etc/passwd and /etc/group also contain redundant information and I'm not happy with it. But in contrast to /etc/resolv.conf the information in this files also contains information not available on the system by default. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat