nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   How do I change my hostname? (http://www.nvnews.net/vbulletin/showthread.php?t=5463)

doom 12-22-02 01:19 AM

How do I change my hostname?
 
My current one is "localhost." (the redhat default)
Is there a command to change this name?

Klaus-P 12-22-02 10:49 AM

This "localhost" is the default dummy name for the local loopback interface with the
IP 127.0.0.1

If you really don't like this name then try to modify it in "/etc/hosts" to "any_new_free_name".
Then reboot your machine and check if the modification works by running "ping any_new_free_name"

> ping any_new_free_name

should respond with something like

PING any_new_free_name (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from any_new_free_name (127.0.0.1): icmp_seq=1 ttl=255 time=0.053 ms


But i think it's not a very good idea to change it!

BTW Your hostname is that name you get if you run the command "hostname".

doom 12-22-02 12:46 PM

Would there be a problem if I change the short hostname as in:

127.0.0.1 localhost.localdomain localhost

to

127.0.0.1 localhost.localdomain doom

Klaus-P 12-22-02 02:10 PM

And i've hoped it was April 1. :-(


All times are GMT -5. The time now is 02:41 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.