[Bug 388266] New: No DNS servers in /etc/resolv.conf when rebooting
https://bugzilla.novell.com/show_bug.cgi?id=388266 Summary: No DNS servers in /etc/resolv.conf when rebooting Product: openSUSE 11.0 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rodrigo@novell.com QAContact: qa@suse.de Found By: --- I had missing DNS servers in the Yast2 network settings, set up with NetworkManager. I added 2 DNS servers to the Hostname/DNS tab, but when booting again, I have to add the servers by hand to /etc/resolv.conf doing any change in tab and applying the changes makes the DNS servers disappear from /etc/resolv.conf. This is on a static IP setup -- 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=388266
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c1
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=388266
User rodrigo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c2
--- Comment #2 from Rodrigo Moya
https://bugzilla.novell.com/show_bug.cgi?id=388266
User rodrigo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c3
--- Comment #3 from Rodrigo Moya
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c4
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User rodrigo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c5
Rodrigo Moya
https://bugzilla.novell.com/show_bug.cgi?id=388266
User antcregoz@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c6
Antonio Crevillén
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mcook@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c7
Mike Cook
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c8
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c9
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c10
Michal Zugec
it's not possible to use one device with static and another with dynamic configuration simulatenously on suse. Maybe I don't understand but you can have eth0 static and eth1 with dhcp
IMHO this is NetworkManager bug, that user has static configuration and NM replaces his /etc/resolv.conf with empty file. -- 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=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c11
Tambet Ingo
Maybe I don't understand but you can have eth0 static and eth1 with dhcp
How does it work? When a dynamic device rewrites /etc/resolv.conf, where does the static device get it's pre-configured DNS list? -- 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=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c12
Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c13
--- Comment #13 from Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c14
--- Comment #14 from Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c15
Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c16
--- Comment #16 from Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c17
--- Comment #17 from Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User rodrigo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c18
--- Comment #18 from Rodrigo Moya
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c19
--- Comment #19 from Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c20
Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c21
Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c22
--- Comment #22 from Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c23
--- Comment #23 from Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c24
Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c25
Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c26
--- Comment #26 from Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User alpha096@virginbroadband.com.au added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c27
Scott Couston
https://bugzilla.novell.com/show_bug.cgi?id=388266
User rodrigo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c28
--- Comment #28 from Rodrigo Moya
https://bugzilla.novell.com/show_bug.cgi?id=388266
User pacho@condmat1.ciencias.uniovi.es added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c29
Pacho Ramos
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c30
Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=388266
User jabailo@texeme.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c31
John Bailo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mzugec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c32
--- Comment #32 from Michal Zugec
https://bugzilla.novell.com/show_bug.cgi?id=388266
User s.kage@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c33
Banane Bieger
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c34
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c35
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c36
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=388266
User kaprasad@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c37
Kandepu Prasad
https://bugzilla.novell.com/show_bug.cgi?id=388266
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c38
Marius Tomaschewski
Fix being in 11.1 and the bug being closed as fixed in 11.0 does not seem to match. Is there any update provided for 11.0?
AFAIK there was no update needed for this issue on 11.0. It is marked FIXED (instead of WONTFIX or WORKSFORME), because we've added "fixes" - complete rewrite - to 11.1 (see comment 36) and NetworkManager does not try to follow any sysconfig settings, what caused problems in DHCLIENT_MODIFY_RESOLV_CONF=no case (comment #8). There is a pending (submitted but AFAIK not released) update for dhclient (used by NM). One of the fixes is related: it allows to override a script option defined in (old) /etc/dhclient.conf with an option provided via command line interface (NM is using own script). Workaround is to comment out the script line in /etc/dhclient.conf. Second one fixing evaluation of the sysconfig policies in the /sbin/dhclient-script [ifup corner cases with non-standard configuration]. The situation on 11.0 with ifup (NETWORKMANAGER=no) is, that yast2 writes the static nameservers directly into the /etc/resolv.conf. Yes, the "Change /etc/resolv.conf manually" is gray, but when you uncheck the "Update DNS data via DHCP" [causes DHCLIENT_MODIFY_RESOLV_CONF=no], you can define the nameservers and they are written to /etc/resolv.conf. => static DNS configuration works with ifup. When you enable "Update DNS data via DHCP" [DHCLIENT_MODIFY_RESOLV_CONF=yes], yast2 does not discard the nameservers that are already in resolv.conf. When you change an interface to use dhcp, modify_resolvconf used by dhcpcd (and pppd as well) makes a backup on connect, writes dynamic resolv.conf settings and and restores the static settings on disconnect. => dhcp DNS configuration update & restore works with ifup. When NetworkManager is enabled, it overwrites the /etc/resolv.conf (written by yast2 or not). When a connection is up and nameservers are provided by dhcp _or_ static dns server are provided, then the NetworkManager writes them into the /etc/resolv.conf. Otherwise it writes an empty resolv.conf. => static and dhcp configuration works with NM. To make the resolv.conf update work, DHCLIENT_MODIFY_RESOLV_CONF=yes needs to be set [reset to the default setting] before NM is enabled (NETWORKMANAGER=yes ; rcnetwork restart). -- 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=388266
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=388266#c39
--- Comment #39 from Marius Tomaschewski
Ok, so what this means is that suse system configured by yast and static IP does not support:
* DHCP - I doubt your ISP allows DNS queries from a random wifi hotspot you'd like to use your laptop. * Dialup - Same reason as above. * VPN - Many corporate environments (including novell) use their own internal DNS servers that are not public and the host names won't resolve without them.
No. It is a very common mistake people make, thinking that they order of the nameservers in resolv.conf solves this problem. On linux (at least), there is _no_ way to direct local network queries to a local nameserver VPN queries to another one and ISP queries to ISP nameserver just by adding the nameservers to resolv.conf only. Also when you define 3 nameservers (vpn, local, isp) in /etc/resolv.conf, only one (first) at time is used by the resolver, except the request times out where then the resolver trys the next one. There is no "NXDOMAIN" fallback or something like this. See also "man resolv.conf": "[...] If there are multiple servers, the resolver library queries them in the order listed. [...] (The algorithm used is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all the name servers until a maximum number of retries are made.) [...] If no nameserver entries are present, the default is to use the name server on the local machine. [...]" Solution for this, is to not to define any nameserver (or only a local one) in /etc/resolv.conf, but to install a local nameserver (bind or dnsmasq) and define forward zones there - bind example: options { forward first; # ask isp first, then try root ns include "/etc/named.d/forwarders.conf"; ### forwarders.conf content is like: # forwarders { isp.isp.isp.isp; }; }; zone "lan.example.com" in { type forward; forward only; # ask only lan ns forwarders { lan.lan.lan.lan; }; }; #zone "<lan-network>.in-addr.arpa" in { ... }; # lan reverse zone "vpn.example.com" in { type forward; forward only; # ask only vpn ns forwarders { vpn.vpn.vpn.vpn; }; }; #zone "<vpn-network>.in-addr.arpa" in { ... }; # vpn reverse On 11.0 there is the MODIFY_NAMED_CONF_DYNAMICALLY on 11.1 the NETCONFIG_DNS_FORWARDER="bind" that should help to update the ISP nameserver to configure a scenario like this. -- 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