alfredopalhares / openvpn-update-resolv-conf

Script that updates DNS settings are pushed by the OpenVPN server
462 stars 129 forks source link

DNS leaks #5

Closed Ptolom closed 8 years ago

Ptolom commented 8 years ago

This script is causing DNS leaks.

echo -n "$R" | $RESOLVCONF -a "${dev}.inet" Does not remove the old DNS servers from resolv.conf.

Adding the exclusive flag (-x) to resolvconf will stop the old DNS from being used. echo -n "$R" | $RESOLVCONF -a -x "${dev}.inet"

alfredopalhares commented 8 years ago

Hello @Ptolom What are the drawbacks of using -x for the other DNS servers?

alfredopalhares commented 8 years ago

Nevermind my previous comment. Just re-read the issue.