Change Computer name in Linux Fedora

1
21

To change computername(hostname) Edit the confugation file

]# vi /etc/sysconfig/network

Change Hostname section

and Restart the PC

————————–

Hostname will get changed

If you are using Red Hat or Fedora Linux
Use redhat-config-network GUI tool. Type following command and click on DNS tab > Setup hostname and domain name:
# redhat-config-network

On other hand you can edit a text file. Find out and set up the value for HOSTNAME in the file /etc/sysconfig/network:
# vi /etc/sysconfig/network

Setup/replace HOSTNAME
HOSTNAME=web.nixcraft.com

Where, web is hostname and nixcraft.com is your DNS domain name.

If you are using Debian Linux

You need to edit /etc/hostname file and put hostname.domain.com in this file:
# vi /etc/hostname

Set or replace hostname:
web.nixcraft.com

Debian, Suse and other Linux distro support GUI tool called network-admin. Type following command and click on DNS tab > Setup hostname and domain name:
$ network-admin

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here