Change hostname in Freebsd

To change a hostname, do:
1. # hostname newname
2. Edit /etc/hosts
3. Edit /etc/rc.conf

To see the changes logoff then log back on.

Note: if you have any services such as mysql stop it before doing this command.

Leave a Reply