Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

如何正确设置 DNS? #116

Open
cooooolt opened this issue Dec 4, 2022 · 4 comments
Open

如何正确设置 DNS? #116

cooooolt opened this issue Dec 4, 2022 · 4 comments

Comments

@cooooolt
Copy link

cooooolt commented Dec 4, 2022

我在 DNS Settings 这个标签页里的设置如下:

# Default Nameservers
223.5.5.5
1.1.1.1

# Nameservers
https://dns.alidns.com/dns-query
https://cloudflare-dns.com/dns-query

日志里报错:all DNS requests failed, first error: context deadline exceeded

@chandelures
Copy link
Owner

正常情况下, DoH是可以使用的. 可能是由于某些配置不正确造成的问题, 或者是网络的问题.

  • 将 DoH 改为 UDP 是否可以正常使用?
  • Rule 设置为 DIRECT 时是否可以浏览国内站点?

另外可以参考:

@cooooolt
Copy link
Author

cooooolt commented Dec 4, 2022

Rule 设置为 direct 可以访问国内网站;
DNS 的报错有点奇怪我也没有摸清规律,有时国外 DNS 会报错国内 DNS 不会(试了 Nameservers 那里填 1.1.1.1 也会报错),有时 DoH 又可以。但是不影响使用就是了,我再观察一下;)

感谢你的帮助!

@chandelures
Copy link
Owner

可能是DNS pollution造成的影响, 极少情况下我也遇到过类似的问题, 但是重启之后就正常了.
这个app中用的DNS mode强制设定为Fake-ip, 理论上不会存在DNS pollution的问题.

@cooooolt
Copy link
Author

cooooolt commented Dec 5, 2022

感谢!最近 DNS pollution 是有很明显感觉。很喜欢这个简单的 Clash 客户端🫡

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants