I want to test that the connection from my local machine to my VPN is set up correctly, specifically that I do not have DNS leaks.

I am aware of web-based tools like dnsleaktest.com but they aren't suitable for repeated and/or scripted testing.

Is it possible to perform a local test for DNS leaks?


DNSleak inspects DNS packets on the local network interface to detect leaks. Unlike web-based solutions, it works at the local computer level. No third party servers are used and DNS leak result is a true / false response. See the README for more details.

Installation instructions for Debian-based systems (usage instructions in README):

# download code
git clone https://github.com/emanuele-f/DNSleak.git

# install prerequisites
sudo apt install libpcap0.8-dev libndpi-dev pkg-config

# install from source
cd dnsleak
sudo make install PREFIX=/usr install

# basic usage
sudo dnsleak <interface>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.