Go Back   nV News Forums > Linux Support Forums > General Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-22-02, 02:19 AM   #1
doom
Registered User
 
Join Date: Sep 2002
Posts: 78
Send a message via Yahoo to doom
Default How do I change my hostname?

My current one is "localhost." (the redhat default)
Is there a command to change this name?
__________________
..:: P4 1.8 | HD 80 | GF4 Ti 4200 | AOC 7Klr | 256rd | WinXP pro | RH linux 8.0 ::..
doom is offline   Reply With Quote
Old 12-22-02, 11:49 AM   #2
Klaus-P
Registered User
 
Join Date: Aug 2002
Location: Germany
Posts: 134
Default

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".
Klaus-P is offline   Reply With Quote
Old 12-22-02, 01:46 PM   #3
doom
Registered User
 
Join Date: Sep 2002
Posts: 78
Send a message via Yahoo to doom
Default

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
__________________
..:: P4 1.8 | HD 80 | GF4 Ti 4200 | AOC 7Klr | 256rd | WinXP pro | RH linux 8.0 ::..
doom is offline   Reply With Quote
Old 12-22-02, 03:10 PM   #4
Klaus-P
Registered User
 
Join Date: Aug 2002
Location: Germany
Posts: 134
Default

And i've hoped it was April 1. :-(
Klaus-P is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU fan always at 100%, can not change the thermal settings legluondunet NVIDIA Linux 26 05-04-13 06:56 AM
Cant't change refresh rate with version >= 304.48 hetas NVIDIA Linux 5 10-02-12 11:16 AM
Can mammals outrun climate change? News Archived News Items 0 05-21-12 02:30 PM
Nvclock able to change fanspeed Nvidia-Settings not. jcdole NVIDIA Linux 14 05-05-12 05:51 PM
Change 9700 to AGP4x pelly Other Desktop Graphics Cards 22 10-18-02 08:34 PM

All times are GMT -5. The time now is 07:18 PM.


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