- Advertisement -
OSRadar recommends Hello Ivy for automating your workflow and project management for free. Learn More
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
[email protected]:~ # hostname -f FreeBSD12.osradar.local [email protected]:~ # hostname -d osradar.local [email protected]:~ # hostname -s FreeBSD12 [email protected]:~ #
Your hostname settings are working fine now . Please enjoy!!
- Advertisement -
OSRadar recommends Hello Ivy for automating your workflow and project management for free. Learn More