How do I change HOSTNAME on an Ubuntu server?
Posted
by
BryanWheelock
on Server Fault
See other posts from Server Fault
or by BryanWheelock
Published on 2011-07-01T13:11:14Z
Indexed on
2011/07/01
16:24 UTC
Read the original article
Hit count: 421
I'm attempting to change the hostname on my shared server with Slicehost so I can setup Postfix as a null client.
I edited /etc/hosts
and after reboot, the hostname is still incorrect.
What am I doing wrong?
username@mail Fri Jul 01 13:01:32 ~
$ sudo cat /etc/hostname
mail.domain1.com
username@mail Fri Jul 01 13:01:45 ~
$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
208.78.100.198 mail.domain1.com
username@mail Fri Jul 01 13:02:13 ~
$ hostname -f
pop.where.secureserver.net
I also intend to add another domain to this server, how do I configure this correctly.
© Server Fault or respective owner