LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   my hostname has been changed from my computer name to localhost (https://www.linuxquestions.org/questions/linux-networking-3/my-hostname-has-been-changed-from-my-computer-name-to-localhost-487877/)

johnsanty 09-28-2006 11:11 PM

my hostname has been changed from my computer name to localhost
 
Hi All,

I noticed that my hostname has been changed from my computer name to localhost, as shown below.

[johnsanty@localhost ~]$ hostname
localhost.localdomain
[johnsanty@localhost ~]$


Before my hostname is always my computer name but suddenly it has been changed. Do you know the cause of this? How can I change it back to my computer name? Thanks for youn prompt reply...


Johnsanty

Galaxy_Stranger 09-29-2006 01:20 AM

http://www.cpqlinux.com/hostname.html

johnsanty 09-30-2006 08:48 AM

Quote:

Originally Posted by Galaxy_Stranger

Hi Galaxy,

Thanks for your prompt reply... I'l check the website you posted and i'll let you know.. Thanks again.

John

operator10001 10-01-2006 10:21 AM

goto:
file:/etc/network
look for a small file named "interfaces"
carefully edit the file as you see fit.


All times are GMT -5. The time now is 12:51 AM.