Repository navigation
Dns interception under TUN mode #406
VendettaReborn
started this conversation in
General
Replies: 3 comments
|
That's a good point. We can do option two when clash dns and hijack are enabled. Any thoughts on the case when users have internal domain for their home for example. Should we support those cases too |
0 replies
|
DNS hijack is complex. |
0 replies
|
after thinking about this and #590 I think it's not so much value to put tun DNS hijacking in place - there's always apps that use their own DoH/DoH or tcp DNS which we can't do nothing. instead we probably implement a LRU on the enhanced resolver that maps the host <-> IP so any clients go through clash dns can benefit the hostname match |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Status quo: When tun mode is turned on, dns request won't be handled by clash-rs's dns client, but handled by os's default approach. So it causes a leak.
There are basically two ways to solve this problem:
Both plans have their AD & DIS, but i prefer the second approach, since it's compatible to clash.meta's tun config, and it leaves less job to users, and it's easy to implement.
That's everything I know about this problem, feel free to leave a comment.
All reactions