resolvconf lists nameserver addresses in the wrong order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager |
New
|
Undecided
|
Unassigned | ||
resolvconf (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: network-manager
I am using Network Manager to connect to my OpenVPN server. When I use the openvpn command line client, DNS push is fine, resolv.conf is updated to the pushed DNS servers (old lines gone). When I use NM, resolv.conf is not written corretly. The OpenVPN server pushes 4 DNS server, but only the first one is appended to resolv.conf. It should remove the old lines and add the 4 servers from the OpenVPN server to resolv.conf.
My daemon.log after connecting:
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop NetworkManager[
Sep 29 18:26:13 pan-desktop nm-openvpn[5901]: OpenVPN 2.1.0 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
Sep 29 18:26:13 pan-desktop nm-openvpn[5901]: WARNING: No server certificate verification method has been enabled. See http://
Sep 29 18:26:13 pan-desktop nm-openvpn[5901]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sep 29 18:26:13 pan-desktop nm-openvpn[5901]: /usr/bin/
Sep 29 18:26:14 pan-desktop nm-openvpn[5901]: LZO compression initialized
Sep 29 18:26:14 pan-desktop nm-openvpn[5901]: UDPv4 link local: [undef]
Sep 29 18:26:14 pan-desktop nm-openvpn[5901]: UDPv4 link remote: [AF_INET]
Sep 29 18:26:18 pan-desktop nm-openvpn[5901]: [server] Peer Connection Initiated with [AF_INET]
Sep 29 18:26:20 pan-desktop modem-manager: (net/tun0): could not get port's parent device
Sep 29 18:26:20 pan-desktop NetworkManager[
Sep 29 18:26:20 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop nm-openvpn[5901]: TUN/TAP device tun0 opened
Sep 29 18:26:21 pan-desktop nm-openvpn[5901]: /sbin/ifconfig tun0 10.8.0.6 pointopoint 10.8.0.5 mtu 1500
Sep 29 18:26:21 pan-desktop nm-openvpn[5901]: /usr/lib/
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop NetworkManager[
Sep 29 18:26:21 pan-desktop nm-openvpn[5901]: Initialization Sequence Completed
Sep 29 18:26:22 pan-desktop NetworkManager[
Sep 29 18:26:22 pan-desktop NetworkManager[
Sep 29 18:26:22 pan-desktop NetworkManager[
Sep 29 18:26:22 pan-desktop NetworkManager[
Sep 29 18:26:22 pan-desktop NetworkManager[
Sep 29 18:26:22 pan-desktop nm-dispatcher.
My daemon.log after disconnecting:
Sep 29 18:28:14 pan-desktop nm-openvpn[5901]: /sbin/ifconfig tun0 0.0.0.0
Sep 29 18:28:14 pan-desktop NetworkManager[
Sep 29 18:28:14 pan-desktop avahi-daemon[726]: Withdrawing workstation service for tun0.
Sep 29 18:28:14 pan-desktop nm-openvpn[5901]: SIGTERM[hard,] received, process exiting
Sep 29 18:28:16 pan-desktop NetworkManager[
Sep 29 18:28:16 pan-desktop NetworkManager[
Sep 29 18:28:16 pan-desktop NetworkManager[
Sep 29 18:28:16 pan-desktop nm-dispatcher.
I am using Maverick beta, NM 0.8.1. I think the problem is at this file http://
Changed in network-manager (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- Does not correctly write resolv.conf + resolvconf lists nameserver addresses in the wrong order |
Changed in network-manager: | |
importance: | Unknown → Undecided |
status: | Unknown → New |
My resolv.conf before VPN connection:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 221.7.34.10
nameserver 221.7.34.11
My resolv.conf after VPN connection:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 221.7.34.10
nameserver 221.7.34.11
nameserver 4.2.2.1