Re: hostname doesn't stick

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

 



From: "Anne Wilson" <cannewilson@xxxxxxxxxxxxx>

127.0.0.1  localhost.localdomain  localhost

Mea culpa.  That is exactly what I have, and what I intended to
recommend.  Brain was obviously not entirely in gear at that moment.

NEVER change localhost as a name. The "hosts" file is not one you
should normally have to muck with, particularly the localhost line.
If you do not use dhcp to gather an address it should have your
machine's local address plus its fully qualified name on a line
below the localhost line.

If you have this for ifcfg-eth0, in /etc/sysconfig/network-scripts
with another copy in /etc/sysconfig/networking/devices then you may
have your machine name overridden by its dynamic address:
# <Note about NIC device type>
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=<MAC address>
ONBOOT=yes
TYPE=Ethernet

The hosts file should refer to 127.0.0.1 as localhost. If not programs
may fail.

If you do NOT run DHCP them set the HOSTNAME in the network file
to the name you want. If you run DHCP you're likely stuck with the
hostname you receive. There is a chance this is not the case. If
so the /etc/sysconfig/network file can look like this:
NETWORKING=yes
HOSTNAME=name.domain.dom
DOMAIN=domain.dom
PEERDNS=yes

I'd give something like that a try.

Of course there is always the RTFM if you can FTFM ploy.

Fedora is nothing like the nice old RedHat I grew to love in the 5-9
days. The FMs are mostly awol or securely hidden from prying eyes.

{o.o}

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux