vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.81k stars 3.1k forks source link

[Feature] 关于DNS挟持问题 #2457

Closed luckyyyyy closed 2 years ago

luckyyyyy commented 2 years ago

Verify Steps

Describe the Feature

https://github.com/vernesong/OpenClash/blob/master/luci-app-openclash/root/etc/init.d/openclash#L1060

这里的挟持是为了什么?建议只作为dnsmasq上游服务器 会与内网部分功能冲突

image

Describe the Solution

建议不要默认挟持,可选挟持,仅作为上游,现在是两个放在一起了

Describe Alternatives

No response

Additional Context

No response

vernesong commented 2 years ago

你没看明白代码,53的取值来自dnsmasq

luckyyyyy commented 2 years ago

你没看明白代码,53的取值来自dnsmasq

我的意思是,我偶尔需要在客户端上临时设置下别的DNS,验证下域名DNS是否生效,不希望完全走网关的dns,这条设置后,无论客户端怎么设DNS,都会被转发过去。

$ dig www.baidu.com @2.2.2.2 +short www.a.shifen.com. 180.101.49.11 180.101.49.12

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days