[Bug 561168] New: Nameserver settings of forwarders overwrite resolv.conf
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c0 Summary: Nameserver settings of forwarders overwrite resolv.conf Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gleixner@bib-bvb.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5 I have read bug 473308 and i have the same problem. But in 473308 the resolution is to make 127.0.0.1 the default for name resolution if no nameserver is set up. But there are many situations where one want to have different settings in forwarders and resolv.conf. My main nameserver has no forwarders set up, because ISPs nameservers return wrong records instead of "not found". But in case of maintenance i sometimes have to switch off bind - and then name resolution stops working. The last time this happend was when i used zypper dup to get from 11.1 to 11.2. Reproducible: Always Steps to Reproduce: 1. Configure network devices, set nameservers there 2. Configure name server using yast. Do not use forwarders -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |pbaudis@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c1 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |gleixner@bib-bvb.de --- Comment #1 from Petr Baudis <pbaudis@novell.com> 2009-12-08 07:42:44 UTC --- I'm sorry, could you please rephrase exactly what behaviour you want with what content of /etc/resolv.conf? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c2 flo gleixner <gleixner@bib-bvb.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|gleixner@bib-bvb.de | --- Comment #2 from flo gleixner <gleixner@bib-bvb.de> 2009-12-08 12:43:03 UTC --- I want that the content of resolv.conf is controlled by yast network settings. It should not be overwritten by yast nameserver forwarders settings. Forwarders in bind may be different from resolvers set in network settings. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c3 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pbaudis@novell.com AssignedTo|pbaudis@novell.com |jsrain@novell.com --- Comment #3 from Petr Baudis <pbaudis@novell.com> 2009-12-08 19:54:52 UTC --- -> yast then :) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c4 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |gleixner@bib-bvb.de --- Comment #4 from Jiri Srain <jsrain@novell.com> 2009-12-09 08:37:21 UTC --- Could you be more specific when exactly does resolv.conf get overwritten? Which YaST module does so? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c5 flo gleixner <gleixner@bib-bvb.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|gleixner@bib-bvb.de | --- Comment #5 from flo gleixner <gleixner@bib-bvb.de> 2009-12-09 14:37:49 UTC --- Steps to reproduce: yast2 -> Network Settings -> Tab Hostname/DNS -> Name Server 1-3: set up some name servers The result is: These name servers are written to /etc/resolv.conf Then call yast module "DNS Server". Accept installing bind if not yet installed. You see the name server set up before in the List of forwarders. I want to delete this, because i want have another dns server for redundancy. -> Delete forwarders. Step through the rest of the wizard and finish. Result: resolv.conf has no nameserver entry <- This should not happen! Back to yast2 -> Network Settings -> Tab Hostname/DNS -> Name Server 1-3: set up nameserver again (including now 127.0.0.1 as we have a new nameserver). Result: resolv.conf has no nameserver entry <- This should not happen! Resolver and forwardes for dns server are not the same thing. Usually they are set up with the same entries, but in many cases this is not useful (redundant name servers, specialized name servers, ...) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@novell.com |locilka@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com AssignedTo|locilka@novell.com |mt@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c6 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@novell.com Component|Basesystem |YaST2 Version|Final |Factory AssignedTo|mt@novell.com |locilka@novell.com Product|openSUSE 11.2 |openSUSE 11.3 Severity|Normal |Enhancement --- Comment #6 from Marius Tomaschewski <mt@novell.com> 2009-12-16 08:38:15 UTC --- There is the NETCONFIG_DNS_FORWARDER variable that can be "resolver", "bind" or "dnsmasq". It controls where to write the NETCONFIG_DNS_STATIC_* and/or dynamic (dhcp, ppp provided) name servers. See also "man 8 netconfig". "resolver": writes search list and name server list to /etc/resolv.conf "bind" : writes search list to /etc/resolv.conf and name servers to the /etc/named.d/forwarders.conf, that is there are no name servers in /etc/resolv.conf then. Netconfig makes use of a glibc feature to contact the local nameserver automatically, that seems to be broken again, see bug 473308 and bug 558333. "dnsmasq" : analogue to bind (In reply to comment #5)
Steps to reproduce: yast2 -> Network Settings -> Tab Hostname/DNS -> Name Server 1-3: set up some name servers
The result is: These name servers are written to /etc/resolv.conf
OK.
Then call yast module "DNS Server". Accept installing bind if not yet installed. You see the name server set up before in the List of forwarders. I want to delete this, because i want have another dns server for redundancy. -> Delete forwarders. Step through the rest of the wizard and finish.
Result: resolv.conf has no nameserver entry <- This should not happen!
This is a feature of glibc, not a bug.
Back to yast2 -> Network Settings -> Tab Hostname/DNS -> Name Server 1-3: set up nameserver again (including now 127.0.0.1 as we have a new nameserver).
Result: resolv.conf has no nameserver entry <- This should not happen!
same as above.
Resolver and forwardes for dns server are not the same thing.
No, they aren't -- the recursive nameservers in resolv.conf are used by the glibc, the recursive nameservers in forwarders.conf are used by bind only. glibc makes automatically use of a local nameserver (bind here) when there are no nameservers in resolv.conf. Further, when bind is set to "forwarders first;", it is using the forwarders first and makes a fall back to full recursion using root name servers.
Usually they are set up with the same entries, but in many cases this is not useful (redundant name servers, specialized name servers, ...)
As Lukas already wrote in https://bugzilla.novell.com/show_bug.cgi?id=558333#c2 it is a feature, not a bug. Which name server settings are written to resolv/forwarders.conf, you can specify using the NETCONFIG_DNS_POLICY. When you set NETCONFIG_DNS_POLICY="STATIC" (instead of "auto"), only the name server specified in the NETCONFIG_DNS_STATIC_* variables are used. That yast2 dns-server writes the forwarders to NETCONFIG_DNS_STATIC_* and sets NETCONFIG_DNS_FORWARDER to "bind" is OK -- a feature. Well, it would be possible to add a checkbox that makes this feature optional and causes to keep the NETCONFIG_DNS_FORWARDER="resolver" and write the nameserves directly to the forwarders.conf instead. Then you can decide yourself in netconfig variables how to handle the nameservers for resolv.conf and forwarders.conf. I'm changing to enhancement for 11.3 and reassign to Lukas to review it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c7 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED --- Comment #7 from Lukas Ocilka <locilka@novell.com> 2010-01-05 09:37:31 UTC --- It's already quite difficult so I'm not sure whether adding another option would be really useful. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=561168 http://bugzilla.novell.com/show_bug.cgi?id=561168#c8 --- Comment #8 from Marius Tomaschewski <mt@novell.com> 2010-07-05 09:54:29 UTC --- See also feature request: fate#309036: Add checkbox to yast2-dns-server whether to use NETCONFIG_DNS_FORWARDER="bind" or not FYI, netconfig is not using the glibc feature by default any more, because of too many problems happened with this (glibc were broken, ...); there is a new NETCONFIG_DNS_FORWARDER_FALLBACK (=yes by default) variable on 11.3: - Added writing of name server addresses to /etc/resolv.conf in forwarder mode ("bind", "dnsmasq") as fallback for the moments, when the local forwarder process is stopped, e.g. during update (bnc#607511). Set NETCONFIG_DNS_FORWARDER_FALLBACK=no to revert. That is, netconfig now writes: /etc/resolv.conf: nameserver 127.0.0.1 # or another loopback addr when specified # in the NETCONFIG_DNS_STATIC_SERVERS var. nameserver ... # non-local nameserver fallback from static # or also dynamically provided settings # (<=policy resolved) forwarders.conf for bind or dnsmasq: nameserver ... # non-local nameserver from static or # dynamically provided settings (<=policy resolved) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=561168 https://bugzilla.novell.com/show_bug.cgi?id=561168#c9 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FEATURE --- Comment #9 from Lukas Ocilka <locilka@novell.com> 2011-03-24 09:23:43 UTC --- ENOTIME Let's solve it together with feature #309036 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com