What goes in /etc/hosts?

Neal Becker ndbecker2 at verizon.net
Thu Mar 10 00:55:52 UTC 2005

Suppose my FQDN is a.b.c.  I'd like to set hostname to a.b.c.  What goes
in /etc/hosts?  I believe that X won't work unless you have: localhost localhost.localdomain a.b.c

But this won't work with nfs4.  If hostname is set to a.b.c and the entry
a.b.c is in hosts under, then when I try to mount a server (a.b.c
is client) I get this:
>> mount: can't get address for a.b.c

I guess mount isn't figuring out there is an eth0 interface and using that
address.  If I remove the entry from hosts, and set the hostname to just
'a', mount works.

More information about the users mailing list