How do I change hostname in freebsd?

Andy Reitz reitz at eecs.cwru.edu
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:

	hostname="new.host.name"

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

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-core-configuration.html

-Andy.



More information about the freebsd-questions mailing list