Skip to content

FreeBSD Change Hostname without reboot

Updated 1 min read

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.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Linux server management

hardening, patching, monitoring and automation for Ubuntu, Debian, RHEL and AlmaLinux.

Was this answer helpful?

Still stuck? Open a ticket