I was looking into the code of network-manager-openvpn and the vpn-
manager in nm;

It seems that the openvpn plugin receives the dns server list (in my
case, there are none) and adds them to the config struct. vpn-manager
later discards the old ip4_config and uses the new one, which has no
dns, and then resolv.conf is generated empty.

What would be a good policy for servers in the resolv.conf generated
when a vpn is active? I thought of

1 - servers in "prepend-domain-name-servers"  in dhclient.conf
2 - if the vpn is not the default route, the servers received by the active 
interface's dhclient
3 - servers received by the vpn plugin

-- 
VPN connection should alter /etc/resolv.conf
https://bugs.launchpad.net/bugs/37239
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to