hostname

Tim Kellers timothyk at wallnet.com
Sat Oct 30 20:09:54 UTC 2010


  On 10/30/10 4:00 PM, Tim Dunphy wrote:
> how can I set the hostname so that it persists through reboots? I have
> set the hostname I want in /etc/hosts but rebooting the change does
> not show up. In CentOS you have /etc/hostname which serves this
> purpose but in FreeBSD I don't know how to do this.
>
>
> thanks
>
edit /etc/rc.conf and enter:

hostname="[put your hostname here]"

change the [put your hostname here] to your actual hostname.

And it will load the name on (re)boot.

Tim Kellers


More information about the freebsd-questions mailing list