How To Change Hostname And Domain In Linux Command

Welcome Login | Register


How To Change Hostname And Domain In Linux Command
How to Change Hostname and Domain In Linux Command This page contains information about How to Change Hostname and Domain In Linux Command Here you can also give your thought about the subject of How to Change Hostname and Domain In Linux Command


Main List


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
  * Your Name:
  * Your Email Address (Will Not Be Published)
  Website
* Your Comments



# 78943 Reply By marlin On Sat Nov 01, 2008 8:49 pm
# 78934 Reply By unix On Sat Nov 01, 2008 8:19 pm
can you also use /etc/hosts ?