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
hostname
- 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 127.0.0.1Â old-hostname to
Please reboot and check with hostname commands
root@FreeBSD12:~ # hostname -f FreeBSD12.osradar.local root@FreeBSD12:~ # hostname -d osradar.local root@FreeBSD12:~ # hostname -s FreeBSD12 root@FreeBSD12:~ #
Your hostname settings are working fine now . Please enjoy!!
- Advertisement -
Subscribe
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"