How to solve DNS leaks when using a proxy
Hi everyone, no matter how I tried my wlan0 still using default router DNS server
resolvectl dns
Global: 8.8.8.8 1.1.1.1
Link 2 (wlan0): 192.168.1.1
I'm using wpa_supplicant and systemd-networkd to connect to the Wi-Fi
/etc/systemd/network/25-wireless.network
[Match]
Name=wlan0
SSID=S4G-A0
[Network]
DHCP=yes
DNS=1.1.1.1
IPv6AcceptRA=no
$ resolvectl
Link 2 (wlan0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=allow-downgrade/unsupported
Current DNS Server: 192.168.1.1
DNS Servers: 192.168.1.1
/etc/systemd/resolved.conf
DNS=1.1.1.1
/etc/resolv.conf
nameserver 1.1.1.1
nameserver 1.0.0.1
$ traceroute archlinux.org
DNS Query still done by My ISP servers.
xx.xx.xx.xx.static.cc.cc (xx.xx.xx.xx) 48.478 ms 20.670 ms 20.624 ms
xx.xx.xx.xx.static.cc.cc (xx.xx.xx.xx) 20.605 ms 22.067 ms 25.310 ms
Edited 27 Feb 2023. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 50% up
- Kind
- Text
- ID
- 11dable
6 comments
How, exactly, did a traceroute tell you that?
My ISP DNS server show in traceroute report.
It doesn't. Traceroute shows routers (gateways) that were used to reach an IP address; it doesn't even know anything about the DNS servers that were used to look it up.
You can use whichever DNS servers but you can't avoid communicating through the ISP's routers, that's literally why they're your ISP.
(If your ISP actually uses the same device as one of their routers and as their DNS server, that's a bit weird for a commercial ISP, but doesn't change the fact that it's showing up in traceroute doing the job of a router, not as a DNS server. I'm guessing though they're two different addresses, just a bit similar.)
Are you sure?
Use dnsleaktest.com to verify.