Gene Heskett wrote: > On Tuesday 24 January 2006 18:47, Ken Bloom wrote: > >>Steve Witt wrote: >> >>>On Tue, 24 Jan 2006, [utf-8] José Pablo Ezequiel Fernández wrote: >>> >>>>Hello. >>>>How do I change the fqdn of a computer ? >>>>No matter what I do, hostname -f keeps telling >>>>"localhost.localdomain", other >>>>computers with the same configuration give the right hostname. >>>>Thank you. >>>>-- >>> >>>The hostname of the computer is contained in '/etc/hosts'. You can >>>change it there. >> >>I think you mean /etc/hostname >>But when you change it, you'll need to be sure to add the new hostname >>to /etc/hosts with the IP address of 127.0.0.1 > > I would not recommend that. Leave localhost at 127.0.0.1, but give the > machines FQDN a 192.168.nn.nn address. And copy that hosts file to all > machines on your local network.
I didn't say to take localhost away. I meant to add the new hostname in addition: [EMAIL PROTECTED] ~]$ cat /etc/hosts 127.0.0.1 localhost cat-in-the-hat # The following lines are desirable for IPv6 capable hosts # (added automatically by netbase upgrade) ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts -- I usually have a GPG digital signature included as an attachment. See http://www.gnupg.org/ for info about these digital signatures.