Home Learn How to Change Hostname in CentOS 7

How to Change Hostname in CentOS 7

99
0

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.