What goes in /etc/hosts?

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

 



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:

127.0.0.1 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 127.0.0.1, 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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux