[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
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c1
Petr Baudis
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c2
flo gleixner
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c3
Petr Baudis
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c4
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c5
flo gleixner
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c
Lukas Ocilka
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c6
Marius Tomaschewski
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
http://bugzilla.novell.com/show_bug.cgi?id=561168
http://bugzilla.novell.com/show_bug.cgi?id=561168#c8
--- Comment #8 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=561168
https://bugzilla.novell.com/show_bug.cgi?id=561168#c9
Lukas Ocilka
participants (1)
-
bugzilla_noreply@novell.com