Set or change hostname in FreeBSD12

0
174

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

i have no answer. because there is no hostname predefined

1-Set new hostname in FreeBSSD12

Set hostname  or change hostname

2-Set Hostname  permanently in FreeBSD12

Edit  /etc/rc.conf

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

2-2-Edit  /etc/hosts file

change the old hostname 127.0.0.1  old-hostname to

Please reboot and check with  hostname commands

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

Spread the love
  • 9
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here