下一代互联网国家工程中心的官方 doh/dot 公布
dot:dns.cfiec.net
但是我试了一下,貌似需要纯 ipv6 环境,或者手动设置本地 IP,不然解析不出来。需要的大佬可以试一试,还蛮好用的。
官方网址: https://www.chinaipv6.com.cn/dot-doh/
“`
$ curl -v –doh-url ‘https://dns.cfiec.net/dns-query’ www.google.com
* Added dns.cfiec.net:443:240e:e9:900b::6 to DNS cache
* Found bundle for host dns.cfiec.net: 0x7fffed0e5680 [serially]
* Server doesn’t support multiplex (yet)
* Trying 240e:e9:900b::6:443…
* TCP_NODELAY set
* Hostname ‘dns.cfiec.net’ was found in DNS cache
* Trying 240e:e9:900b::6:443…
* TCP_NODELAY set
* Connected to dns.cfiec.net (240e:e9:900b::6) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* Connected to dns.cfiec.net (240e:e9:900b::6) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=dns.cfiec.net
* start date: Oct 26 01:01:40 2020 GMT
* expire date: Jan 24 01:01:40 2021 GMT
* subjectAltName: host “dns.cfiec.net” matched cert’s “dns.cfiec.net”
* issuer: C=US; O=Let’s Encrypt; CN=Let’s Encrypt Authority X3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fffed105700)
> POST /dns-query HTTP/2
Host: dns.cfiec.net
accept: */*
content-type: application/dns-message
content-length: 32
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
* We are completely uploaded and fine
< HTTP/2 200
< server: h2o/dnsdist
< date: Sat, 21 Nov 2020 16:25:17 GMT
< content-type: application/dns-message
< content-length: 48
<
* Connection #0 to host dns.cfiec.net left intact
* a DOH request is completed, 1 to go
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=dns.cfiec.net
* start date: Oct 26 01:01:40 2020 GMT
* expire date: Jan 24 01:01:40 2021 GMT
* subjectAltName: host “dns.cfiec.net” matched cert’s “dns.cfiec.net”
* issuer: C=US; O=Let’s Encrypt; CN=Let’s Encrypt Authority X3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fffed10aea0)
> POST /dns-query HTTP/2
Host: dns.cfiec.net
accept: */*
content-type: application/dns-message
content-length: 32
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
* We are completely uploaded and fine
< HTTP/2 200
< server: h2o/dnsdist
< date: Sat, 21 Nov 2020 16:25:18 GMT
< content-type: application/dns-message
< content-length: 60
<
* Connection #1 to host dns.cfiec.net left intact
* a DOH request is completed, 0 to go
* DOH Host name: www.google.com
* TTL: 101 seconds
* DOH A: 199.59.149.136
* DOH AAAA: 2001:0000:0000:0000:0000:0000:9a5c:1061
* Trying 199.59.149.136:80…
* TCP_NODELAY set
* Connected to www.google.com (199.59.149.136) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.68.0
> Accept: */*
>
“`
所有请求都只返回一条记录,DoT 的返回结果略有不同,应该是多条记录随机返回一条的。
在测试过程中发现他们的这个服务可能还不太稳定,一些域名他们可能还没有缓存,在前几次请求的时候会返回 502 Bad Gateway,过几秒再请求就好了。
领导介绍
刘东
下一代互联网国家工程中心主任
北京天地互连信息技术有限公司董事长
@pmispig 所以就是个私企了