Skip to main content

DoH

# curl 使用 DoT 解析
curl --doh-url https://dns.cloudflare.com/dns-query https://wener.me
# 直接解析
curl -s -H 'accept: application/dns-json' 'https://dns.cloudflare.com/dns-query?name=wener.me&type=A' | jq
curl -s -H 'accept: application/dns+json' 'https://dns.google.com/resolve?name=wener.me&type=A' | jq
# 不支持
curl -s -H 'accept: application/dns-json' 'https://dns.alidns.com/dns-query?name=wener.me&type=A'
cloudflared proxy-dns --port 5553

dig +short @127.0.0.1 -p5553 cloudflare.com AAAA

dnscrypt-proxy -resolve cloudflare-dns.com

Wireformat