View and change FreeBSD Host name:
View host name command: "hostname"
-------------------------------------
Change host name requiring restart (this is easier):
sudo nano /etc/rc.conf
Replace the hostname="generic" with the wanted hostname like hostname="BSD_Server".
Then save and then edit this file:
sudo nano /etc/hosts
Replacing the hostname old with the new throught the file.
Then restart.
---------------------------------------------------------------
Source | Date: February 13th, 2021
Back