Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-25-2005, 06:59 PM   #1
Registered: Aug 2002
Posts: 60

Rep: Reputation: 15
hostname changing

When I boot up my computer I keep getting a different hostname. It may be one for a few times then it will switch to another hostname.

I am using RHL 9. My ISP uses DCHP for IP assignment.

I found the other thread under distributions about someone that had a problem with changing hostname. I cannot use netconfig to set the hostname because I do not have a static IP address. I do not have the file HOSTNAME on my computer.

The problem began after my wife visited a certain website which attempted to install a program on the computer. Since that time I have been having this problem with the hostname. I did not detect any virus when scanned. I did a search for the hostname that it usually reverts to but cannot find it in a search checking text files.

What are my possible sources of the problem and the solution?

Old 02-25-2005, 09:22 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
did you try to edit :

---> /etc/sysconfig/network
that says:

Old 02-26-2005, 06:07 AM   #3
Registered: Aug 2002
Posts: 60

Original Poster
Rep: Reputation: 15
/etc/sysconfig/network does not show the hostname that keeps appearing. That is why I am confused.

The hostname comes up as "B5R3S8" but I cannot find any reference to this hostname anywhere. All settings for hostname are localhost.localdomain.
Old 02-26-2005, 02:22 PM   #4
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
Debian keeps hostname in '/etc/hostname'. Not sure about RH. You should also check '/etc/hosts' I don't think that is the problem.

Perhaps it helps.

Old 04-04-2005, 08:07 AM   #5
Registered: Aug 2002
Posts: 60

Original Poster
Rep: Reputation: 15
Been there done that and still the hostname keeps changing on me. Right now it keeps changing between my MAC address and some name I have no idea where it is coming from. What is changing the hostname?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing hostname sh4d0w13 Debian 4 06-14-2005 10:45 AM
hostname changing rusty_slacker Linux - General 2 04-15-2005 06:49 PM
Changing hostname? Alf829 Linux - Networking 2 03-08-2004 08:31 AM
Hostname changing Neorio Linux - Networking 2 01-03-2004 07:11 PM
Changing hostname tristan2600 Linux - Newbie 1 10-17-2003 08:18 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

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