Bug 474858
Summary: | dhclient only honors the first domain from the domain-name option | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew McNabb <amcnabb> | ||||||
Component: | anaconda | Assignee: | David Cantrell <dcantrell> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 10 | CC: | anaconda-maint-list, dcantrell, edfriedmangvs, wwoods | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-02-16 20:32:53 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Andrew McNabb
2008-12-05 16:52:29 UTC
Can you attach your entire dhcpd.conf file as well as the ifcfg-eth0 file for the client (or whatever the device file is). Created attachment 325913 [details]
full dhcpd.conf
Created attachment 325914 [details]
ifcfg-eth0
As I started to add the ifcfg-eth0, I noted the following line, which is almost surely responsible:
SEARCH="aml.cs.byu.edu"
This must have been added automatically during installation. I suppose this is the real bug. If the installation uses DHCP, shouldn't the auto-generated ifcfg-eth0 leave out any parameters that were provided by dhcp?
Thanks.
Yep, the SEARCH line is doing it. See this block from /sbin/dhclient-script (in the make_resolv_conf function): if [ -n "${SEARCH}" ]; then echo "search ${SEARCH}" >> $rscf else if [ -n "${new_domain_search}" ]; then echo "search ${new_domain_search//\\032/ }" >> ${rscf} elif [ -n "${new_domain_name}" ]; then echo "search ${new_domain_name//\\032/ }" >> ${rscf} fi fi We take SEARCH if you have that in the ifcfg file, otherwise we take what the DHCP server gives us. In anaconda, we are writing out the SEARCH line in the ifcfg file (line 585 of network.py): if self.domains != ['localdomain'] and self.domains: searchLine = string.joinfields(self.domains, ' ') f.write("SEARCH=\"%s\"\n" % (searchLine,)) Which will only ever contain the first domain name we see because that's all we pick up during installation. We actually pull the domain off the FQDN during installation, so we will only ever see one. It's probably best for us not to write the SEARCH line out in anaconda. This bug will only affect you if you are using the network service instead of NetworkManager. Reassigning to anaconda since that's where the fix should be. Patch committed to anaconda git repository. The next build of anaconda in rawhide will include this fix. Please test when anaconda-11.4.1.59-1 appears in rawhide. What's the best way to test it? Will I have to roll my own initrd, or will there be a new one posted somewhere? Thanks for the fix. You will need to grab boot.iso (or the netboot images if you have a boot server) for rawhide when anaconda-11.4.1.59-1 appears in the tree, burn the image, boot it, and do a fresh install. More information: https://fedoraproject.org/wiki/Releases/Rawhide To check the version of anaconda in rawhide, use this command: repoquery --repoid=rawhide anaconda The yum-utils package contains repoquery, if you don't have it installed. *** Bug 477051 has been marked as a duplicate of this bug. *** |