Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-02-2006, 07:41 PM   #1
LQ Newbie
Registered: Apr 2006
Location: Egypt
Distribution: RedHat 9 & enterprise 4
Posts: 4

Rep: Reputation: 0
Question Hostname was changed on the command prompt

Hi..I m having a problem on hostname on RedHad enterprise 4, I m not sure of the reason, one day the host name on the command prompt has changed to be root@dhcppc0:~ although at the time, I didn't try to work on dhcp (I m still in learning phase, & sometimes I make trials utilizing my few resources just to practise like making DNS using IP alias). Any way, I checked /etc/sysconfig/network & /etc/hosts & the host name in both is the old one: localhost@localdomain localhost.I tried to change them, but in vain!! I found similar problems but not an answer,can anybody help??Please provide me with reasons & solution, not just solution.
Thank you all.
Old 04-03-2006, 12:21 AM   #2
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
It sounds like your network config is set to allow the DHCP server to assign a host name when it receives an IP address. This will take presidence over the host you set in sysconfig. You should be able to set the network card config not to allow DHCP to set the host name.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knoppix Changed Hostname deadlove75 Linux - Software 4 04-10-2006 01:15 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 08:41 PM
hostname changed. was i hacked???????? Sridhar Guntur Linux - Networking 7 07-23-2004 12:34 PM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 07:15 PM
user comand prompt changed - don't know why sadmac Linux - Newbie 2 04-24-2003 01:40 AM

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

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