How do I change hostname in freebsd?

Andy Reitz reitz at
Mon Apr 17 23:00:38 UTC 2006

Hi Matt,

As root, type "hostname <new hostname>", and the hostname will be changed
immediately. To make this change permanent across reboots, edit the file
'/etc/rc.conf', and add the following line:


The '/etc/rc.conf' file is described here:


More information about the freebsd-questions mailing list