Monday, September 8, 2014

Changing the Hostname (RedHat)

Changing the Hostname (RedHat)

hostname command by default will display the current hostname 

for temporarily change the hostname you may type :- 

# hostname xxx.yyyy.com                                                 

And it will be gone after reboot so , for permanently change it ,

RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot.

# vi /etc/sysconfig/network 


NETWORKING=yes
HOSTNAME=xxx.yyyy.com


And after that reboot your system and hostname will be changed .








You may also check this links :- details provided with snapshot :- )
http://computernetworkingnotes.com/network-administration/network-setup-in-rhce6.html

No comments:

Post a Comment

Featured Post

Managing CA Certificates on Red Hat Linux 9: Understanding update-ca-trust extract

  Managing CA Certificates on RHEL9 RHEL8 OracleLinux9 OracleLinux8 In today's digital landscape, securing communications and verifying ...