Softwares ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Main /
Red-Hat-Enterprise-Linux-How-do-I-change-my-hostname
Red Hat Enterprise Linux How do I change my hostname.Tools that we can use to change the hostname.This procedure also works for a standalone system without a DNS subsystem. setup - A text mode system configuration toolredhat-config-network commandYou can also run the redhat-config-network command in the Red Hat Enterprise Linux 3 and run system-config-network command in the Red Hat Enterprise Linux 4 and 5 , click on the "DNS" tab, and change the "Hostname" field. /etc/sysconfig/network1. IP hostnames or machine names can be changed dynamically with the command hostname and persistently by setting the HOSTNAME environment variable in /etc/sysconfig/network. Steps.
Example:[root@localhost ~]# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 [root@localhost ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain NTPSERVERARGS=iburst [root@localhost ~]#
|