18.6 C
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

Set or change hostname in FreeBSD12

FreeBSD12 is just released , many people are interested to test it and maybe to run it on production Servers. let me show u in this small tutorial how to change or set new hostname on your machine and i will give this  example live from my server.

Normally the command hostname will show you the answer


- Advertisement -

i have no answer. because there is no hostname predefined

1-Set new hostname in FreeBSSD12

Set hostname  or change hostname

#hostname FreeBSD12.osradar.local

2-Set Hostname  permanently in FreeBSD12

Edit  /etc/rc.conf

Please add the hostname line to rc.conf file with the following command

echo hostname="FreeBSD12.osradar.local" >> /etc/rc.conf

2-2-Edit  /etc/hosts file

change the old hostname  old-hostname to

Please reboot and check with  hostname commands

root@FreeBSD12:~ # hostname -f
root@FreeBSD12:~ # hostname -d
root@FreeBSD12:~ # hostname -s
root@FreeBSD12:~ #

Your hostname settings are working fine now . Please enjoy!!

- Advertisement -


Please enter your comment!
Please enter your name here

Donate to Osradar

Latest article