Bug 915147
| Summary: | redhat-lsb breaks hostname lookup of machines on local network | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eddie Kovsky <ewk> | ||||
| Component: | redhat-lsb | Assignee: | Ondrej Vasik <ovasik> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 18 | CC: | ewk, hliu, llim, ovasik, pnemade | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-11-25 17:23:14 UTC | Type: | Bug | ||||
| 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
Eddie Kovsky
2013-02-25 04:45:10 UTC
redhat-lsb installation modifies /etc/nsswitch.conf to be LSB compliant. This may break its functionality - but the old system /etc/nsswitch.conf is kept as /etc/nsswitch.conf.rpmsave and user is warned about it. If this is the thing which broke your network connection, I'm sorry but there is no clean solution for this. Could you please check if this is your case? Restoring the hosts entry from /etc/nsswitch.conf.rpmsave resolved this. I had to restore this entry from the backup: #hosts: db files nisplus nis dns hosts: files mdns4_minimal [NOTFOUND=return] dns Created attachment 705764 [details]
Update redhat-lsb install to prevent breaking nsswitch.conf
LSB requires nssswitch.conf to resolve host services in this order:
hosts: files dns
redhat-lsb installtion restores mdns4_minimal from hosts services entry. This breaks hostname resolution on local networks.
Proposed patch appends mdns4_minimal to end of hosts lists. This way nsswitch.conf is still LSB compliant, but no longer breaks user's network configuration.
I was able to build and install a local RPM with this patch without any errors.
This change breaks other things... as I do plan to remove the nsswitch handling at all, closing this as duplicate of F19 bugzilla tracking the same issue... *** This bug has been marked as a duplicate of bug 986728 *** |