Comment 27 for bug 37239

Revision history for this message
Rodrigo Virote Kassick (kassick) wrote :

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