Changing the Hostname (RedHat)
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
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