Skip to content

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.

0 points6 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 50% up
Kind
Text
ID
11dable

Author

24
posts
100
comments
3
media
View profile

6 comments

$ traceroute archlinux.org

DNS Query still done by My ISP servers.

How, exactly, did a traceroute tell you that?

6 points
 xx.xx.xx.xx.static.cc.cc (xx.xx.xx.xx)  48.478 ms  20.670 ms  20.624 ms

My ISP DNS server show in traceroute report.

1 points

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.)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.