[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: First line in /etc/hosts

On Sun, Feb 13, 2005 at 03:01:26PM +0000, Mark Brown wrote:
> On Sun, Feb 13, 2005 at 01:25:15PM +0100, Steinar H. Gunderson wrote:
> > However, now we've suddenly discovered that _other_ programs get confused by
> > this! In particular, if you use an NFSv4-patched mount, it does a
> > gethostname() and resolves that, which returns, which in turn makes
> > it happily use that as a client identifier to the remote server. (This breaks
> > when two or more such clients connect, obviously.)
> This also causes problems for NIS servers, for the same reason - NIS
> needs to hand out the IP address of the machine in some circumstances
> and is inappropriate.  
> Resolving the hostname is a standard method for obtaining an IP address
> for the machine and it would be helpful if it could be reverted since I
> imagine other programs are also going to run into the same issue.

Changing that could also confuse some inner features (e.g.filtering hosts by name)
for programs like proftpd. Unfortunately also order is important, I
received at leat one report about that, due to changes in /etc/hosts...

Francesco P. Lovergine

Reply to: