In Linux, you can use command simply like this to change your hostname
shell#hostname nameyourhost
or directory store your hostname
in RHEL
shell#nano /etc/hosts
in Ubuntu
shell# nano /etc/hostname
in case to edit to static IP
in RHEL Interface for network locate at
nano /etc/sysconfig/network-scripts/interface
in ubuntu
nano /etc/network/interface
add DNS in ubuntu / RHEL
nano /etc/resolv.conf
finally restart your network in linux
/etc/init.d/network restart
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment