GoForum🌐 V2EX

cloudflare 自建 doh

guoguobaba · 2025-12-30 14:35 · 0 次点赞 · 2 条回复

https://github.com/cmliu/CF-Workers-DoH

基于这个在 cf 上自建了一个 doh ,发现 gfw 会针对域名进行封锁,比如取名 dns.mydomain.xyz 或者 doh.mydomain.xyz ,甚至 mydoh.mydomain.xyz 都无法访问,后来改名叫 domain.mydomain.xyz ,就行了

curl https://mydoh.mydomain.xyz/ -v -4
* Host mydoh.mydomain.xyz:443 was resolved.
* IPv6: (none)
* IPv4: 104.21.7.35, 172.67.135.177
*   Trying 104.21.7.35:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
* Recv failure: Connection reset by peer
* TLS connect error: error:00000000:lib(0)::reason(0)
* OpenSSL SSL_connect: Connection reset by peer in connection to mydoh.mydomain.xyz:443
* closing connection #0
curl: (35) Recv failure: Connection reset by peer
2 条回复
Solix · 2025-12-30 15:10
#1

你都用 cf 了,不用自建,直接用 cloudflare-gateway 不得了 https://i.imgur.com/krir4IG.png

totoro625 · 2025-12-30 15:10
#2

@Solix #1 他解决了 GFW 对于 cloudflare-gateway 域名链接的干扰

添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: guoguobaba
发布: 2025-12-30
点赞: 0
回复: 0