HostOnNet Blog

Change Hostname of FreeBSD Server

Looking for Linux Server Admin or WordPress Expert? We can help.

To change your hostname to example server24.hosthat.com

Run the command ‘hostname server24.hosthat.com’
Edit the file /etc/hosts
Edit the file /etc/rc.conf

You can see hostname of a FreeBSD server with command

server22# hostname
server22.hosthat.com
server22#

Posted in FreeBSD. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.