LinuxQuestions.org
Help answer threads with 0 replies.
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 05-11-2004, 08:18 PM   #1
brian_h1
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Question hostname resetting to localhost on unclean reboot


I've recently installed Fedora Core 1 and I'm trying to change the hostname. For this example, let's say I want to call my computer 'newmachinename'. I found that by running 'hostname' command like so:

hostname newmachinename

would change the hostname as it's listed at
/proc/sys/kernel/hostname

and would stay changed until I reboot, from which time it would go back to 'localhost'.

Then, I did the following which remained stable on reboot:
-changed /etc/sysconfig/network HOSTNAME value to newmachinename.
-added 'newmachinename' to /etc/hosts just after 'localhost' and on the same line.

I've rebooted several times and the 'newmachinename' persists.

Now, I have a different problem in that I'm trying to get my wireless card to work (topic for a different post). Anyway, upon inserting the wireless card, my laptop locks up completely and the only thing to do is to flip the on/off switch. When it finally boots up again, the machine has returned to its default name of 'localhost'. Also, when rebooting, I see a message stating that some recovery is going on. So, I think the hostname configuration is being backed up somewhere and rewritten on an unclean reboot.

Is there a more robust mechanism for setting the hostname so that it remains stable?

One possible catch is that I need to use dhcp and so I don't have a fixed IP address.



Thanks for any insights.

-Brian

Last edited by brian_h1; 05-13-2004 at 07:52 AM.
 
  


Reply


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
lpd - Get_Local_Host : HostName 'LocalHost' bad chanmy8 Linux - General 4 03-02-2006 03:13 PM
/dev/nvdia* permissions keep resetting on reboot Lagg Slackware 7 05-13-2005 04:04 PM
change hostname from localhost in samba Sathington Linux - Newbie 4 04-07-2004 05:27 AM
Hostname changes after reboot spg001 Linux - Newbie 6 08-14-2003 02:04 PM
Help! Reboot, System Unclean Error. wwnn1 Linux - General 1 05-17-2002 11:00 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration