Websitetemplate.org

Welcome > Linux > Networking > Change Domain Name

Change Domain Name

Sometimes you need to change a system's name - here's how.

1. Edit network settings:

vi /etc/sysconfig/network
hostname=host.example.com
:wq it must be a fully qualified domain name.

2. Change the name in the file /etc/hosts

127.0.0.1     host   host.example.com  localhost
192.168.0.10  host   host.example.com

Content Copyright 2003-2014 George Toft