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.
Asked
Active
Viewed 135 times
0
1 Answers
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.

user4556274
- 4,877
/etc/hostname
? http://askubuntu.com/questions/9540/how-do-i-change-the-computer-name – TheWanderer Aug 03 '16 at 13:01