change hostname in RHEL8/Centos8

0
281

The Redhat 8 final will be relased soon ,the beta version is already  there and  ready for testing. i will show you in this tutorial how to change hostname in RHEL 8 or Centos8 Server or maybe a Work station. please  remember hostnames can contain letters digits hyphen and dot characters. and must contains between 2 and 63 characters.

1-Set Hostname on RHEL8/ Centos8

In my case i want to change my hostnamen to osradar-rhel8.local.domain.  please do it the comand hostnamectl

1-1-Reboot The Server

command reboot to  restart

1-2-check the new  hostname now

Option:  you can add the hostname to  /etc/hosts

4-Change Hostname via nmtui  Tool 

This option also easy for starters  to change the hostname using  nmtui tool

just  Type  nmtui

Then Set system Hostname

Quit and reboot your  System

 

 

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