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:
next you will see something like this:
all you need to do is change the HOSTNAME, where host=you hostname and domain.com your domain.
* Always make a backup before you start to do anything like this.