PPP - Pedantic PPP Primer : FreeBSD System Configuration : Verifying the FreeBSD Host Name : Configuring the FreeBSD Host Name
Previous: Verifying the FreeBSD Host Name
Next: Verifying the Ethernet Interface Configuration

3.1.1. Configuring the FreeBSD Host Name

*** Reminder: You must be logged in as 'root' to edit the system configuration files!

*** CAUTION: If you mangle the system configuration files, chances are your system WILL NOT BOOT correctly! Be careful!

The configuration file that specifies the FreeBSD system's host name when the system boots is in /etc/sysconfig. Use the default text editor ('ee') to edit this file.

Logged in as user 'root' load /etc/sysconfig into the editor with the following command:

# ee /etc/sysconfig

Using the arrow keys, scroll down until you find the line that specifies the host name of the FreeBSD system. By default, this section says:

---
# Set to the name of your host - this is pretty important!
hostname=myname.my.domain
---
Change this section to say (in our example):
---
# Set to the name of your host - this is pretty important!
hostname=curly.my.domain
---

Once the change to the host name has been made, press the 'Esc' key to access the command menu. Select "leave editor" and make sure to specify "save changes" when prompted.


PPP - Pedantic PPP Primer : FreeBSD System Configuration : Verifying the FreeBSD Host Name : Configuring the FreeBSD Host Name
Previous: Verifying the FreeBSD Host Name
Next: Verifying the Ethernet Interface Configuration