delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/03/23:01:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Geoffrey Hausheer" <cygwin1 AT phracturedblue DOT com>
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Date: Mon, 03 Mar 2003 20:00:57 -0800
X-Epoch: 1046750457
X-Sasl-enc: wyW15gcKufJZR4nDLv8HsQ
Subject: Re: why is bash trying to access my DNS?
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0303032238260 DOT 25599-100000 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.44.0303032238260.25599-100000@slinky.cs.nyu.edu>
Message-Id: <20030304040057.6C94748ECC@server2.fastmail.fm>

On Mon, 3 Mar 2003 22:40:34 -0500 (EST), "Igor Pechtchanski" said:
> If you have a static IP, try adding an entry with your IP address and
> your
> computer name to /etc/hosts.  This should make winsock resolve the name
> locally, rather than query the DNS server.

This didn't work.  winsock appears to still try to get to my DNS even
with the hosts file set. Using ping, I can see it do a correct name->ip
translation form my NATed IP, which it gets from the hosts file, since
there is no place to lookup my artificial domain name, but when ping
executes, the gethostname call tries to go access the DNS first for some
reason.

Thanks,
Geoff
> 	Igor
> P.S. Your /etc/hosts should be a link to
> c:\winnt\system32\drivers\etc\hosts

Yes it does this.
-- 
  Geoffrey Hausheer
  geoffreyh AT fastmail DOT fm

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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