How to Change Hostname and Domain In Linux Command
Recently I had to change the hostaname and domain name for a server, I had to do this in the shell command line. Today I will show you how you can change the host name and domain name of your server with the shell. This guide works with redhat or fedora. Type the following at the comand line:
| nano /etc/sysconfig/network |
next you will see something like this:
| NETWORKING=yes HOSTNAME=host.domain.com GATEWAY=208.96.2.161 |
all you need to do is change the HOSTNAME, where host=you hostname and domain.com your domain.
thats it.
* Always make a backup before you start to do anything like this.
Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Thu Apr 11, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Thu Apr 11, 2013 (-8 GMT)
Powered by: Webune Forums V5