Here you will learn to change and Manage the Hostname Using hostnamectl. You can run the following command to check for the current hostname
Confirm that your current hostname, execute the following command
[root@nod home]# hostnamectl
change your current hostname, execute the following command.
That’s it! You’ve just changed your server hostname to server1.domain.com