Bug 174817
Summary: | NM mishandles multiple domain-name-servers, /etc/resolv.conf | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tom London <selinux> |
Component: | NetworkManager | Assignee: | Christopher Aillon <caillon> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-01-20 18:03:38 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
Tom London
2005-12-02 14:57:33 UTC
Still 'broken' in NetworkManager-0.5.1-5.1. Below are lease file and resolv.conf: lease { interface "eth0"; fixed-address 10.10.4.5; option subnet-mask 255.255.0.0; option dhcp-lease-time 604800; option routers 10.10.2.2; option dhcp-message-type 5; option dhcp-server-identifier 10.10.2.11; option domain-name-servers 10.10.2.102,10.10.2.11,10.10.2.118; option dhcp-renewal-time 302400; option dhcp-rebinding-time 529200; option domain-name "doongo.com"; renew 0 2006/1/22 19:38:42; rebind 3 2006/1/25 20:29:27; expire 4 2006/1/26 17:29:27; } # generated by NetworkManager, do not edit! search doongo.com nameserver 10.10.2.102 nameserver 10.10.2.102 nameserver 10.10.2.102 Poked a bit.... in the file nm-named-manager.c, in the function compute_nameservers(), looks like the loop is not 'using' the loop index: Should addr.s_addr = nm_ip4_config_get_nameserver (config, 0); be addr.s_addr = nm_ip4_config_get_nameserver (config, i); Here's a 'patch' (from the gnome tarball): --- nm-named-manager.c 2005-09-28 07:42:57.000000000 -0700 +++ new.c 2006-01-19 10:45:29.000000000 -0800 @@ -301,7 +301,7 @@ if (!str) str = g_string_new (""); - addr.s_addr = nm_ip4_config_get_nameserver (config, 0); + addr.s_addr = nm_ip4_config_get_nameserver (config, i); buf = g_malloc0 (ADDR_BUF_LEN); inet_ntop (AF_INET, &addr, buf, ADDR_BUF_LEN); I checked upstream, and this is reported fixed in CVS. Not sure how to 'close' this. UPSTREAM? |