User Tools

Site Tools


Changing the hostname for a machine

    sudo nano /etc/hosts

Change the hostname to something else for the IP addresses that are not and

    sudo nano /etc/hostname

Change the hostname for this to whatever you did before. I don't think you can use dots on this one

    sudo hostname newhostname

You can restart networking or reboot for the changes to take effect.

ubuntu_change_hostname.txt · Last modified: 2017/03/22 23:19 (external edit)