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

【新功能讨论】支持通过HTTP/SOCKS5代理查询向指定的DNS服务器查询 #21

Open
ghost opened this issue Oct 13, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2021

各位大佬好,之前有幸看到 #16 #17 问题,鉴于目前恶劣的网络环境,和很多人都遭遇的问题,是否有计划支持通过HTTP/SOCK5代理查询向指定的DNS服务器查询功能,例如 在配置里添加诸如proxy socks5://127.0.0.1:1080让定义的to DNSServer都通过指定的proxy来查询?

@leiless
Copy link
Owner

leiless commented Oct 13, 2021

例如 在配置里添加诸如proxy socks5://127.0.0.1:1080让定义的to DNSServer都通过指定的proxy来查询?

可以考虑,我可以先看看实现麻不麻烦(本人不熟悉网络相关编程),如果麻烦的话周期可能会拉的比较长,主要是因为目前精力有限,加上身体出现了一些状况。

当然如果你有兴趣的话,也可以fork之后实现发个PR我看看。

鉴于目前恶劣的网络环境,和很多人都遭遇的问题

针对这个问题,我目前的建议是:

  1. 尝试采用DoH,具体参考:
    https://gist.github.com/leiless/5fbdeafb69d56fe737ba639ded9ac124#gistcomment-3654247
  2. 或者将DNS请求转发到proxy里面,由proxy来查询DNS。这个需要配置透明代理,上手难度稍微大一些。

@leiless
Copy link
Owner

leiless commented Oct 13, 2021

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