This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Hosts and X0.hosts
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 15 Sep 2004 08:14:40 -0400 (EDT)
- Subject: RE: Hosts and X0.hosts
- References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAzB96gfQFa0yV4/K9NUwfZcKAAAAQAAAAaJCaZiHDwU+JcOo24gowawEAAAAA@rossb.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 15 Sep 2004, Ross Boulet wrote:
> > I saw that C:\cygwin\etc\Hosts was a link to the above Hosts file.
> > Because of the above problem, I replaced the link with the real Hosts
> > file itself.
> > Now I try to create a remote connection from a cygwin/X xterm using
> > the following procedure:
> >
> > startxwin.bat
> > xterm
> > X :2 -query remote_hostname
> >
> > The system reports and exit the command in the xterm as
> > follows.
> > "Fatal server error:
> > Xserver: -query unknown host: remote_hostname"
> >
> > b) Doesn't Cygwin/X read this latter Hosts file?
>
> I'm open to correction here, because I don't know the cygwin
> internals, but I believe cygwin is relying on the Windows IP
> stack for name resolution. Therefore, only the DNS servers
> known to Windows and Windows hosts file will be checked for
> names.
That's absolutely correct, hence the /etc/hosts symlink.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw