I use a VPN provider that uses OpenVPN.
If you have a DNS leak as indicated by checking on browserleaks.com or dnsleaktest.com,
Shut off your VPN connection
Attempt to undo any .conf file edits you've wasted time already making. If you've been trying a lot of various suggestions, your best good chance might be to do a fresh install and ensure you've also installed networkmanager-openvpn-gnome as Ubuntu does not have VPN config importing provided by default.
Install dnsmasq
Code: Select all
sudo apt update
sudo apt install dnsmasq
Code: Select all
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved.service
Code: Select all
sudo rm /etc/resolv.conf
sudo nano /etc/resolv.conf
Code: Select all
nameserver 127.0.0.1
Edit your NetworkManager.conf file
Code: Select all
sudo nano /etc/NetworkManager/NetworkManager.conf
Code: Select all
dns=dnsmasq
Code: Select all
[main]
plugins=ifupdown, keyfile
dns=dnsmasq
Restart networking (Or reboot system)
Code: Select all
sudo service network-manager restart
With thanks to the Ubuntu Forums whose solutions for Leaks on Ubuntu/Network Manager seem well researched and successful. THEY WORK and when no other solutions worked for me, these did. The above shown solution works for Ubuntu 17.x and 18.04 LTS. See his other solution for 16.04 LTS, and therefore on Linux MInt too!