How To Change Hostname And Domain In Linux Command
How to Change Hostname and Domain In Linux Command
By: Beginner Step by Step Gui
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.
Posted on: May 28, 2006
|
|
# 78943 Reply By marlin On Sat Nov 01, 2008 8:49 pm
you can check out my tutorial at this link:
http://www.wallpaperama.com/forums/changing-hostname-and-domain-name-in-linux-t6694.html
# 78934 Reply By unix On Sat Nov 01, 2008 8:19 pm
can you also use /etc/hosts ?
