[Bug 959846] New: Managing network - Bad behaviour
http://bugzilla.opensuse.org/show_bug.cgi?id=959846 Bug ID: 959846 Summary: Managing network - Bad behaviour Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jcdole@free.fr QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Changing from "Network manager" to "wicked" or "wicked" to "Network manager" does not update /etc/resolv.conf resulting in bad network access. Running manually "netconfig update -f" update /etc/resolv.conf and seems to resolve network access. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c1
Emilio Recio
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c2
Marius Tomaschewski
Changing from "Network manager" to "wicked" or "wicked" to "Network manager" does not update /etc/resolv.conf resulting in bad network access. Running manually "netconfig update -f" update /etc/resolv.conf and seems to resolve network access.
Yes, see bug 820405... (In reply to Emilio Recio from comment #1)
Six other bugs like this out there since 2010.
I ran that command you suggested, and it reverted my resolv.conf to remove all of my "nameserver" entries... basically what happens when I remove ^^^^^ Which you've added manually? See bellow and also "man 8 netconfig", NETCONFIG_DNS_STATIC_* variables.
resolv.conf, reboot, and connect to the network.
What does "grep ^NETCONFIG /etc/sysconfig/network/config" say? dhcp (and vpn when configured to do it) will apply the settings via netconfig; except you modified the /etc/resolv.conf manually (admin did it -> don't touch). NETCONFIG_FORCE_REPLACE=yes disables the behavior and will update resolv.conf no matter what changed it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c3
Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c4
--- Comment #4 from Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c5
--- Comment #5 from Emilio Recio
(In reply to Emilio Recio from comment #1)
Six other bugs like this out there since 2010.
I ran that command you suggested, and it reverted my resolv.conf to remove all of my "nameserver" entries... basically what happens when I remove ^^^^^ Which you've added manually? See bellow and also "man 8 netconfig", NETCONFIG_DNS_STATIC_* variables.
I added them to Network Manager manually: 1) right click the antenna or square wired icon in the system tray. 2) select configure network connections from the popup menu 3) select the network you wish to edit 4) select the IPV4 tab and enter the search domains and DNS servers you wish to use with that network connection. 5) save your settings, disconnect, and reconnect. 6) DELETE your /etc/resolv.conf file and repeat step #5 7) notice that it has nothing except a long header stating not to edit anything, and "search mydomain.net". It is missing my name server attribute
resolv.conf, reboot, and connect to the network.
What does "grep ^NETCONFIG /etc/sysconfig/network/config" say?
erecio@dellmo:~> grep ^NETCONFIG /etc/sysconfig/network/config NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime" NETCONFIG_VERBOSE="no" NETCONFIG_FORCE_REPLACE="no" NETCONFIG_DNS_POLICY="auto" NETCONFIG_DNS_FORWARDER="resolver" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="example.org" NETCONFIG_DNS_STATIC_SERVERS="" NETCONFIG_DNS_RANKING="auto" NETCONFIG_DNS_RESOLVER_OPTIONS="" NETCONFIG_DNS_RESOLVER_SORTLIST="" NETCONFIG_NTP_POLICY="auto" NETCONFIG_NTP_STATIC_SERVERS="" NETCONFIG_NIS_POLICY="auto" NETCONFIG_NIS_SETDOMAINNAME="yes" NETCONFIG_NIS_STATIC_DOMAIN="" NETCONFIG_NIS_STATIC_SERVERS=""
dhcp (and vpn when configured to do it) will apply the settings via netconfig; except you modified the /etc/resolv.conf manually (admin did it -> don't touch). NETCONFIG_FORCE_REPLACE=yes disables the behavior and will update resolv.conf no matter what changed it.
The /etc/resolv.conf.netconfig that it makes because it noticed I edited my /etc/resolv.conf (to make it work) shows the same error as when I completly delete /etc/resolv.conf it is missing the DNS server that I typed into the "network configuration" in network manager: foo@bar:~> cat /etc/resolv.conf.netconfig ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! search example.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c6
--- Comment #6 from Marius Tomaschewski
**Note**: I need network manager to update /etc/resolv.conf based on the DNS IP addresses that I put into the "connection editor" of Network Manager's IPV4 tab. It's not doing that. It's not even using the DHCP assigned DNS server.
I understand. Please note, I'm netconfig maintainer, not from NetworkManager.
(In reply to Marius Tomaschewski from comment #2)
(In reply to Emilio Recio from comment #1)
Six other bugs like this out there since 2010.
I ran that command you suggested, and it reverted my resolv.conf to remove all of my "nameserver" entries... basically what happens when I remove ^^^^^ Which you've added manually? See bellow and also "man 8 netconfig", NETCONFIG_DNS_STATIC_* variables.
I added them to Network Manager manually: 1) right click the antenna or square wired icon in the system tray. 2) select configure network connections from the popup menu 3) select the network you wish to edit 4) select the IPV4 tab and enter the search domains and DNS servers you wish to use with that network connection. 5) save your settings, disconnect, and reconnect. 6) DELETE your /etc/resolv.conf file and repeat step #5 7) notice that it has nothing except a long header stating not to edit anything, and "search mydomain.net". It is missing my name server attribute
OK, so NetworkManager (or GUI) is doing something wrong / does not pass them. NetworkManager should pass them in the "netconfig modify -s NetworkManager" calls it executes to netconfig which will write them to /etc/resolv.conf.
What does "grep ^NETCONFIG /etc/sysconfig/network/config" say?
erecio@dellmo:~> grep ^NETCONFIG /etc/sysconfig/network/config NETCONFIG_MODULES_ORDER="dns-resolver dns-bind dns-dnsmasq nis ntp-runtime" NETCONFIG_VERBOSE="no" NETCONFIG_FORCE_REPLACE="no" NETCONFIG_DNS_POLICY="auto" NETCONFIG_DNS_FORWARDER="resolver" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="example.org" NETCONFIG_DNS_STATIC_SERVERS="" NETCONFIG_DNS_RANKING="auto" NETCONFIG_DNS_RESOLVER_OPTIONS="" NETCONFIG_DNS_RESOLVER_SORTLIST="" NETCONFIG_NTP_POLICY="auto" NETCONFIG_NTP_STATIC_SERVERS="" NETCONFIG_NIS_POLICY="auto" NETCONFIG_NIS_SETDOMAINNAME="yes" NETCONFIG_NIS_STATIC_DOMAIN="" NETCONFIG_NIS_STATIC_SERVERS=""
dhcp (and vpn when configured to do it) will apply the settings via netconfig; except you modified the /etc/resolv.conf manually (admin did it -> don't touch). NETCONFIG_FORCE_REPLACE=yes disables the behavior and will update resolv.conf no matter what changed it.
The /etc/resolv.conf.netconfig that it makes because it noticed I edited my /etc/resolv.conf (to make it work) shows the same error as when I completly delete /etc/resolv.conf it is missing the DNS server that I typed into the "network configuration" in network manager:
foo@bar:~> cat /etc/resolv.conf.netconfig ### /etc/resolv.conf file autogenerated by netconfig! ... search example.org
OK, so netconfig wrote the setting it received (none from NetworkManager
and $NETCONFIG_DNS_STATIC_SEARCHLIST content. "netconfig update -m dns -v"
will show that there are no merged settings provided by the NetworkManager.
AFAIK, there is some dnsmasq support in NetworkManager where NetworkManager
writes the DNS entries to some dnsmasq config in /run/..., sends only the
127.0.0.1 nameserver to netconfig and starts an dnsmasq instance.
BTW: the merged NetworkManager settings are keept by netconfig in:
/var/run/netconfig//NetworkManager.netconfig
As workaround, you could change to use:
NETCONFIG_DNS_POLICY="STATIC * NetworkManager"
Then netconfig will apply static settings (NETCONFIG_DNS_STATIC*), permit
other service to push further setting from any interface [¹] and apply
also the NetworkManager merged setting (which seems to be empty).
[¹]
# netconfig modify -v -s myvpnservice -i eth0 <
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
Marco Varlese
I had same issue when modifying manually the /etc/resolv.conf since, when you run NetworkManager, that file is managed by the daemon itself. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Bad behavior again -- it is against distribution policy to use netconfig and causing issue in comment #0. It is strange; I've tried out NetworkManager on my notebook (without vpn
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c9
Marius Tomaschewski
http://bugzilla.opensuse.org/show_bug.cgi?id=959846
http://bugzilla.opensuse.org/show_bug.cgi?id=959846#c10
Marius Tomaschewski
participants (1)
-
bugzilla_noreply@novell.com