LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2006, 11:11 PM   #1
johnsanty
Member
 
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
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
 
Old 09-29-2006, 01:20 AM   #2
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
http://www.cpqlinux.com/hostname.html
 
Old 09-30-2006, 08:48 AM   #3
johnsanty
Member
 
Registered: Apr 2006
Posts: 49

Original Poster
Rep: Reputation: 15
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
 
Old 10-01-2006, 10:21 AM   #4
operator10001
Member
 
Registered: Mar 2006
Distribution: debian sarge
Posts: 222

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


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname not being changed irfanhab Linux - Networking 3 07-31-2006 03:53 PM
user@localhost has changed daiver Linux - Networking 6 02-21-2006 01:24 PM
hostname of computer changed suddenly for no apparent reason; recovered by reboot qanopus Linux - General 2 02-11-2006 06:24 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration