Scripts runs but results in a DNS leak on Ubuntu 21.10, it does not remove existing DNS servers. #98
Labels
Query Routing
Concerns how systemd-resolved selects interfaces and upstream resolvers.
I am attempting to use this script with a systemd service and a config file from the oepnvpn provider modified according to the instructions.
I used the Stub Resolver. The
systemd-resolved.service
is enabled and running.When I start the Open VPN service:
systemctl start [email protected]
I get:
When I do a
~/dnsleaktest.sh
I get a DNS leak. I can confirm on any of the www DNS leak webpages.Before the script I had two DNS entries which came from the DHCP router. The script successfully removed the second one and replaced it with the correct OpenVPN DNS server however it left the first one (the primary one) in place.
The down part of the script however works as expected. It removed the OpenVPN DNS servers successfully with a:
systemctl start [email protected]
Update:
I ran another series of subsequent tests. These time, the script did not remove the existing DNS servers it just added the OpenVPN DNS servers at the end of the list. Again a DNS leak. The down script again functioned as expected and successfully removed the OpenVPN DNS servers.
System info:
The text was updated successfully, but these errors were encountered: