Thanks, I will make a How to with pictures.Pat D wrote:Excellent.
Thank you sammiev.
I no longer have a DNS leak.
Remember, 127.0.0.1 is your best friend.
Thanks, I will make a How to with pictures.Pat D wrote:Excellent.
Thank you sammiev.
I no longer have a DNS leak.
Hi this doesn work in linux mint 19 cinnamon. Is there any other way to prevent DNS leak?sammiev wrote: ⤴Fri Jan 05, 2018 4:18 pm I have been installing "bind9" like so.
Edit your network connections and change IPv6 to Ignore.Code: Select all
sudo apt-get install bind9
Edit IPv4 to "Automatic DHCP Address only" and in DNS Servers: type in 127.0.0.1 and select save.
Edit the configuration file:Code: Select all
sudo /etc/init.d/bind9 restart
Find the line:Code: Select all
sudo nano /etc/NetworkManager/NetworkManager.conf
Replace it with:Code: Select all
dns=dnsmasq
Save & close the file with Ctrl+O, Enter, Ctrl+X.Code: Select all
#dns=dnsmasq
Reboot computer or restart NetworkManager
Restart NetworkManager:
Go here to test for leaks with and without your VPN.Code: Select all
sudo systemctl restart NetworkManager
https://ipleak.net/
You should have no leaks with and without your VPN.
Been do this for years and 127.0.0.1 is your best friend.
and if you see "Your IP addresses - WebRTC detection"
goto the bottom of the page and it will show you how to fix that as well.
Edit: added a few lines about NetworkManager from my later post.
Nordvpn help told me that an app for linux was in development but they couldn't say when it would be ready for release.Sometimes I wonder: If NordVPN donated money to Linux Mint like PIA did, maybe there would also be a NordVPN application...
Start a new thread. Please read the forum rules.
This is why you need to start your own thread.
This thread is only a little older than 6 months and it's quite relevant to the original topic
If you have a DNS leak as indicated by checking on www.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
Disable resolvedCode: Select all
sudo apt install dnsmasq
Code: Select all
systemctl disable systemd-resolved.service
Remove /etc/resolv.conf and create a new one:Code: Select all
systemctl stop systemd-resolved.service
Code: Select all
rm /etc/resolv.conf
Enter into your empty .conf file:Code: Select all
nano /etc/resolv.conf
that's all!Code: Select all
nameserver 127.0.0.1
save and exit out of your new resolv.conf file.
Edit your NetworkManager.conf file
and add the following:Code: Select all
nano /etc/NetworkManager/NetworkManager.conf
beneath the lines, [main] and plugins=ifupdown, keyfileCode: Select all
dns=dnsmasq
exactly like this with the new line added.
[main]
plugins=ifupdown, keyfile
dns=dnsmasq
save and exit.
9.Back out of the terminal, and reboot the system and check your dnsleak test site for results.
With thanks to Anonymous VPN 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. For 16.04 LTS, [see his other solution]5
Read the forum rules.