This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why is bash trying to access my DNS?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]