[Bug 485793] New: netconfig update (dns-resolver module) appends instead of prepends dynamic dns entries truncating dynamic entries in resolv.conf if more than 3
https://bugzilla.novell.com/show_bug.cgi?id=485793 Summary: netconfig update (dns-resolver module) appends instead of prepends dynamic dns entries truncating dynamic entries in resolv.conf if more than 3 Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mkienenb@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009022800 SUSE/3.0.7-1.1.6 Firefox/3.0.7 Using netconfig without NetManager with dns policy of auto: When I'm off the vpn, my /etc/resolv.conf looks like this (static entries). nameserver 24.92.226.238 nameserver 209.165.131.12 nameserver 209.112.130.2 When I'm on the vpn, it should look like this: nameserver 10.1.1.21 nameserver 10.1.1.22 nameserver 24.92.226.238 #not included, 3 limit exceeded -- nameserver 209.165.131.12 #not included, 3 limit exceeded -- nameserver 209.112.130.2 Unfortunately, /etc/netconfig.d/dns-resolver uses this line: if [ "x$DNSSERVERS" != "x" ]; then DNS_SERVERS="$DNS_SERVERS $DNSSERVERS" instead of this line: if [ "x$DNSSERVERS" != "x" ]; then DNS_SERVERS="$DNSSERVERS $DNS_SERVERS" This means that the dynamic dns servers are added after the static ones, which in my case results in the same three static nameserver entries appearing each time. Changing the line to prepend instead of append fixes the problem. I guess it could be argued what the proper behavior should be, but without the ability of the dynamic entries to take precedence over the static entries, the whole concept of netconfig managing the configuration file breaks. Reproducible: Always Steps to Reproduce: 1. Define three static nameservers 2. netconfig modify to add more dynamic nameservers Actual Results: No change to /etc/resolv.conf to reflect dynamic nameservers Expected Results: /etc/resolv.conf would contain dynamic nameserver entries I'll be submitting a patch to vpnc to allow it to use netconfig instead of modify_resolvconf. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=485793
User jaanvajakas@hot.ee added comment
https://bugzilla.novell.com/show_bug.cgi?id=485793#c1
Jaan Vajakas
https://bugzilla.novell.com/show_bug.cgi?id=485793
Maurice Kienenberger
https://bugzilla.novell.com/show_bug.cgi?id=485793
Marius Tomaschewski
participants (1)
-
bugzilla_noreply@novell.com