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.

sourav
  • 157
  • 2
  • 4
  • 15

1 Answers1

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