Updated: 28 September 2026 · Applies to: FreeBSD 14
Change a FreeBSD server's host name without rebooting.
Steps (root)
hostname server1.example.com # takes effect now sysrc hostname="server1.example.com" # keeps it after reboot
Check with hostname, and update /etc/hosts if needed.