Trying to find a way to test if I’m getting DNS leaks through my VPN on my Ubuntu server installation. The only ways I know how to do this are via websites like dnsleaktest.com or dnsleak.com.
I’ve tried using lynx, curl & wget to load them in command line but they require javascript.
You can try nslookup whoami.akamai.net
, whatever comes back is the IP address that queried Akamai. Ideally you’ll see an IP owned by your VPN provider.
https://github.com/macvk/dnsleaktest
For dns leak test. There are bash, python and win batch scripts. You can also compile elf binary with go.
The thing is my ip address is always of the VPN but then the DNS servers accessed are often of my ISP
Override your DNS servers then? I know my vpn has dns servers I can use, but I hardcoded in 8.8.8.8 and 8.8.4.4 as my dns servers in a VM I use for VPN access.
I user update-resolv-conf to make the VPN use the DNS servers of the .ovpn file but I’m still paranoid and just wanted to check.