0

I edited /etc/hosts file with the new host, then reboot my system but still I'm getting the old host name, how to solve it? I'm using ubuntu 14.04.

1

1 Answer 1

6

The system hostname goes in /etc/hostname.

/etc/hosts is for performing local name to IP address mapping. It may contain your local hostname as a convenience, but it is not the location to set your local hostname.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .