Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增自定义全局dns的功能 #951

Closed
w311ang opened this issue Jul 27, 2022 · 2 comments
Closed

新增自定义全局dns的功能 #951

w311ang opened this issue Jul 27, 2022 · 2 comments

Comments

@w311ang
Copy link
Contributor

w311ang commented Jul 27, 2022

如果设置DNS解析方式为使用本机端口为5335的DNS服务,也仅有在gfwlist中的域名会走5335端口,假如我设置chinadns-ng的监听端口为5335,那就失去了chinadns补gfwlist漏网之鱼的作用

#259

@w311ang
Copy link
Contributor Author

w311ang commented Jul 29, 2022

dnsmasq设置dns转发类似127.0.0.1#5335,再去添加启动项并ssh运行uci set dhcp.@dnsmasq[0].noresolv="1"; uci commit dhcp; /etc/init.d/dnsmasq restart,就可以实现全局dns的效果,详见
https://github.com/coolsnowwolf/luci/blob/0c3c82f4912cd4ddf354e83929b8ef2447ba36b5/applications/luci-app-turboacc/root/etc/init.d/turboacc#L210-L226

@w311ang w311ang closed this as completed Jul 29, 2022
@w311ang
Copy link
Contributor Author

w311ang commented Jul 29, 2022

实际应用coolsnowwolf/lede#9852

@w311ang w311ang reopened this Jul 29, 2022
@w311ang w311ang closed this as completed Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant