This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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: Hosts and X0.hosts


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


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