Bug 490188
| Summary: | NetworkManager does not preserve manually entered DNS addresses. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ivo Sarak <ivo> |
| Component: | system-config-network | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | low | ||
| Version: | 11 | CC: | admin, dcbw, fedora, harald, jmoskovc, jns, notting |
| 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: | 2010-06-28 11:28:17 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: | |||
|
Description
Ivo Sarak
2009-03-13 18:08:42 UTC
This bug has been triaged. -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Have you let NetworkManager connect to that network? What's the contents of /etc/sysconfig/network-scripts/ifcfg-eth0? The DNS servers need to be in the ifcfg file as well, which I believe system-config-network will do. If they are in the ifcfg file correctly, NM should pick them up when activating that connection, and place them into /etc/resolv.conf. However, when NM is running but your eth0 *isn't* connected, of course /etc/resolv.conf will be blank because you can't get to those nameservers anyway. When you see NM writing out a blank resolv.conf, can you also provide the output of the 'nm-tool' command so we can see what the network state is at that point? [ivo@ragana ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# nVidia Corporation MCP78S [GeForce 8200] Ethernet
DEVICE=eth0
HWADDR=00:23:54:d3:c5:2c
ONBOOT=yes
BOOTPROTO=none
NETMASK=255.255.255.0
GATEWAY=192.168.4.33
TYPE=Ethernet
IPADDR=192.168.4.15
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=yes
[ivo@ragana ~]$
[ivo@ragana ~]$ nm-tool
NetworkManager Tool
State: connected
- Device: eth0 [System eth0] --------------------------------------------------
Type: Wired
Driver: forcedeth
State: connected
Default: yes
HW Address: 00:23:54:D3:C5:2C
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
IPv4 Settings:
Address: 192.168.4.15
Prefix: 24 (255.255.255.0)
Gateway: 192.168.4.33
[ivo@ragana ~]$
I've entered all DNS addresses into sysytem-config-network. Why it does not enter those into proper ifcfg files, I do not know. But it does put those into resolv.conf.
Yeah, so that's more of a system-config-network vs. NM interaction issue; I maintain that /etc/resolv.conf cannot be the canonical source of DNS information since it needs to get changed (even when you're not using NM, for stuff like VPN connections, dialup, etc). Thus, I tend to think that if you enter DNS information into system-config-network, that it should add DNS1/DNS2/DNS3 to each of the ifcfg files in its profile as appropriate. Thoughts, Harald? Then, we need the ifup to use those static DNS servers if present in the ifcfg, like it already does in ifup-ppp. Thoughts on that Bill? IIRC, ifup-post will handle DNS1/DNS2 fine as long as PEERDNS != no. *** Bug 492496 has been marked as a duplicate of this bug. *** This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '11'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |