Networking Forums

Networking Forums > Computer Networking > Linux Networking > hostname gets reset wrong by activating eth0 with DHCP

Reply
Thread Tools Display Modes

hostname gets reset wrong by activating eth0 with DHCP

 
 
James Lowenthal
Guest
Posts: n/a

 
      01-24-2006, 02:43 AM
I'm running a new Fedora fc4 (2.6.14-1.1656_FC4) on a laptop and have a
cable modem.

The problem: whenever I enable eth0, either from the Newtork
Configuration gui or automatically at bootup, the hostname gets reset
from localhost.localdomain (two words, with dot in the middle) to
localhostlocaldomain (one word, no dot). This causes all sorts of
problems in communication with the outside world and within gnome. I
can easily fix it temporarily by typing the command as root

# hostname localhost.localdomain

....but this is cumbersome, and I'd prefer a longterm fix.

More info:

1) In the Newtork Configuration gui, I have the following setting:
* Automatically obtain IP Address settings with DHCP
* Hostname=localhost.localdomain
2) Every file I've checked shows the proper
hostname=localhost.localdomain, including:

* /etc/hosts:
127.0.0.1 localhost.localdomain localhost

* /etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=...
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=localhost.localdomain
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
NEEDHOSTNAME=no

(last line added by me in futile attempt following suggestion
elsewhere)

* /etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=localhost.localdomain

....and yet, as soon as I activate eth0, I get:
[12]james@localhost:/home/james% hostname
localhostlocaldomain
[13]james@localhost:/home/james% prompt
[14]james@localhostlocaldomain:/home/james%


Thanks in advance for the magic incantation!

James

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MN-700 wrong date in log plus reset problems Beemer Biker Broadband Hardware 2 04-12-2007 03:49 AM
My hostname not being registered via DHCP UncleStoner Linux Networking 9 02-03-2005 03:42 AM
DHCP: overriding hostname of clients Stefan Bellon Linux Networking 4 10-24-2004 12:41 PM
Mandrake Assigns Hostname Before DHCP? ignatius@notreal.net Linux Networking 0 09-29-2003 02:38 PM
Wrong posting: Changing Hostname made my Linux Box go crazy, Correction here N.K. Linux Networking 2 08-15-2003 01:20 PM



1 2 3 4 5 6 7 8 9 10 11