Skip to content

Cloudflare DNS Hosts #4661

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

Merged
merged 1 commit into from
Jun 15, 2025
Merged

Cloudflare DNS Hosts #4661

merged 1 commit into from
Jun 15, 2025

Conversation

DHR60
Copy link
Contributor

@DHR60 DHR60 commented Jun 14, 2025

  1. userHosts 可覆盖预置 hosts 列表
  2. 调用系统解析 dns.cloudflare.comcloudflare-dns.com 到 hosts (Warp Wireguard Config issue #4660) ,当 userHosts 已有 dns.cloudflare.comcloudflare-dns.com 时跳过

dns.cloudflare.comcloudflare-dns.com 似乎近两年解析结果没变过,一直是

"cloudflare-dns.com": [
  "104.16.249.249",
  "104.16.248.249",
  "2606:4700::6810:f8f9",
  "2606:4700::6810:f9f9"
],
"dns.cloudflare.com": [
  "104.16.132.229",
  "104.16.133.229",
  "2606:4700::6810:84e5",
  "2606:4700::6810:85e5"
]

但是没找到官方说过 dns.cloudflare.comcloudflare-dns.com 的解析结果不会变,所以我认为实时解析好一点

可能会影响启动速度,介意的话可以写死到 AppConfig 里

@2dust
Copy link
Owner

2dust commented Jun 14, 2025

现在启动已经够慢的了,还是不要再变的更慢了。
写死吧

@DHR60
Copy link
Contributor Author

DHR60 commented Jun 14, 2025

done

@2dust 2dust merged commit 7219425 into 2dust:master Jun 15, 2025
1 check passed
@farshadjanu1 farshadjanu1 mentioned this pull request Jun 15, 2025
1 task
@DHR60 DHR60 deleted the dns_host branch June 16, 2025 09:42
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

Successfully merging this pull request may close these issues.

2 participants