VirtualBox Company VPN Issues with DNS

Refer: https://superuser.com/questions/570984/virtualbox-guest-ubuntu-loses-dns-when-host-connects-to-vpn

$ sudo gedit /etc/NetworkManager/NetworkManager.conf

Comment out, the plugins line below (shown before commenting)

[main]
plugins=ifupdown,keyfile,ofono
# dns=dnsmasq

Notes: had a very similar situation with Lubuntu 16.04 (should be identical in other Ubuntus) but this fix did not improve the situation. At least with 16.04, the problem appears to be that NetworkManager uses a local DNS proxy (dnsmasq), and this doesn't play nice with VPN connections, at least in the default configuration.

Commenting/deleting dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf

Note: This fixed was applied too on the Windows host, but it did not seem to make a difference, go ahead and do both.

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm Ubuntu-1804-Convert --natdnshostresolver1 on

Leave a Reply