Set or change hostname in FreeBSD12

Windows Articles

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...

How to force close a program using PowerShell

Hi! We have mentioned in the past that Windows allows you to open multiple programs at once. In fact, that is one...

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...

How to finish a task and force to close a program in Windows 10

Hello! We use numerous applications in Windows 10 on a daily basis. However, these programs can fail and crash. That is, it...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

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

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!!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...

How to force close a program using PowerShell

Hi! We have mentioned in the past that Windows allows you to open multiple programs at once. In fact, that is one...

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...

How to finish a task and force to close a program in Windows 10

Hello! We use numerous applications in Windows 10 on a daily basis. However, these programs can fail and crash. That is, it...
x