Re: hostname doesn't stick

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

 



Hi,

Anne Wilson schrieb:
On Thursday 07 September 2006 06:41, Thufir wrote:
When installing FC5 I set the hostname to "arrakis.homelinux.com" when it
should've been "arrakis.homelinux.org".

running "system-config-network", and changing the hostname with the GUI,
then running "service network restart", or even rebooting, fails to effect
the result of "hostname".

[thufir@arrakis ~]$
[thufir@arrakis ~]$ hostname
arrakis.homelinux.com
[thufir@arrakis ~]$
[thufir@arrakis ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 arrakis.homelinux.org arrakis localhost.localdomain localhost

Despite the warning, I always make changes here. I split that line into two entries:

127.0.0.1	localhost.localdomain
192.168.0.xx	arrakis.homelinux.org arrakis
(adjusting the IP of course to your box's own).

This is what I do, too.
If you don't change that in your hosts file you get inconsistent name resolution: Locally your hostname is resolved to 127.0.0.1, on other hosts the hostname is resolved to your real ip address.

Rainer

--
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