delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/09/18:22:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42A8C1C4.A92D0C7B@dessent.net>
Date: Thu, 09 Jun 2005 15:25:08 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: automatic generation of resolv.conf
References: <001301c56d3f$610dd1b0$a98bfe0a AT RossLap>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Ross Boulet wrote:

> I recently downloaded and compiled dig from the bind
> website.  When I tried to run it, it wouldn't work unless I
> specified the DNS server on the command line.  Looking at
> the man page on a Linux box, I saw a reference to
> resolv.conf (which is obviously not present by default in
> Windoze.  Creating a resolv.conf with my ISP's name servers
> in it fixed the issue.
> 
> I saw some posts from a while back where someone was
> thinking about a utility to create the resolv.conf file for
> some other application that was expecting its presence.
> Does anyone know if this ever got further than the idea
> phase?  I use a laptop in a lot of different places and the
> name servers vary from place to place, depending on the ISP.
> I could just hard code the resolv.conf, but it would be
> helpful to see the data my clients are seeing without having
> to redo resolv.conf each time.

I know that this does not directly answer your question, but if you use
the win32 port of dig (straight from isc.org) you do not need any such
resolv.conf, it gets the nameservers from the Windows configuration.

Since that functionality already exists, your best bet would be to
either a) use the win32 port b) patch dig to include that functionality
when compiling with Cygwin.

Brian

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

- Raw text -


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