How do I change the hostname in Linux 6?

How do I change the hostname in Linux 6?
Answer
You can follow either the first option OR the second one.
  • Modify /etc/sysconfig/network vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=MyNewHostname.localdomain. Save and reboot your server.
  • Type the following command to enter GUI mode. [
    [email protected]
    alhost ~]# system-config-network. Go to “DNS Configuration”.
 

Tìm kiếm

Back
Top