Bug 445741 - 'set hostname from DHCP' doesn't work with NetworkManager
Summary: 'set hostname from DHCP' doesn't work with NetworkManager
Keywords:
Status: CLOSED DUPLICATE of bug 441453
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: NMinAnaconda
Blocks: F10Blocker, F10FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2008-05-08 20:23 UTC by Bill Nottingham
Modified: 2014-03-17 03:14 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-08 13:28:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2008-05-08 20:23:18 UTC
Description of problem:

If NM's not going to support that, we may want to take the option out.

Version-Release number of selected component (if applicable):

F9

Comment 1 Bug Zapper 2008-05-14 10:51:32 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Tom Horsley 2008-05-14 15:50:14 UTC
I can add a verification that this doesn't work in the released fedora 9.
My DHCP server on my xen host is automagically configured to setup as much
information as possible when I install a new virtual machine. That includes
providing the hostname as part of the DHCP info. It has worked everywhere
until I just installed a fedora 9 virtual machine today, and the hostname
still shows up as localhost.localdomain instead of the name DHCP would
have provided.

(I'd note that ubuntu uses network manager, and it *does* get the hostname
set via DHCP - perhaps because the installer picks it up rather than leaving
it to NM to do later?)

Comment 3 Tom Horsley 2008-05-14 16:54:05 UTC
Even more annoying, I can't change the hostname in the
System > Administration > Network applet. Or rather, I can change it,
but it doesn't seem to have any effect.

I have to manually edit the /etc/sysconfig/network file to make the
correct hostname permanent.

Comment 4 Dan Williams 2008-05-14 17:20:08 UTC
hostname returned from DHCP is not currently honored because it has historically
broken xauth (which used to be based on hostname but is now always
'localhost.localdomain'), which resulted in the inability to startup up an X
programs any more.

Now that we've almost fixed all of the instances of stupid stuff assuming the
hostname doesn't change (xauth, libSM, etc) we can finally honor hostname
changes sent via DHCP.

Comment 5 Bruce Orchard 2008-05-23 20:10:34 UTC
When installed Fedora 9 on an empty disk, using DHCP for IP address and host
name, dhclient runs with -sf set to nm-dhcp-client.action.  While the DHCP
answer included the host name, the hostname on the computer did not get set to
the name from DHCP.  Instead it stayed at localhost.localdomain.  I also noticed
that init.d/network is not linked to any S file in /etc/rc5.d.

On another computer I did an upgrade with yum from Fedora 8 to Fedora 9.  It
still runs with no -sf option, so it uses dhclient-script.  It sets the hostname
correctly from the DHCP answer.  S10network is linked to init.d/network.



Comment 6 James Bannon 2008-07-01 18:29:28 UTC
Is there any update on this? It's still not honouring the domainname and
hostname set from DHCP.

Comment 7 Ed Swierk 2008-08-25 21:44:17 UTC
Fixing this is important for servers booting from a LiveCD.

As a workaround, one can use the old-fashioned network service (chkconfig network on).  During boot it sets the hostname based on a reverse DNS lookup on the IP address that dhclient has assigned (see /etc/sysconfig/network-scripts/ifup-post).

Comment 8 Ed Swierk 2008-09-06 21:57:53 UTC
This bug appears to be a duplicate of bug 441453.

Comment 9 Dan Williams 2008-09-08 13:28:00 UTC

*** This bug has been marked as a duplicate of bug 441453 ***


Note You need to log in before you can comment on or make changes to this bug.