发新话题
打印

Linux、Windows、安卓下进行DOH、DOT域名解析

Linux、Windows、安卓下进行DOH、DOT域名解析

DNS over HTTPS(DOH)
# json
curl -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=example.com&type=A' | jq .
# dns wireformat
curl -H 'accept: application/dns-message' 'https://dns.google/dns-query?dns=q80BAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB'  | hexdump -c

curl --doh-url https://cloudflare-dns.com/dns-query https://www.google.com

DNS over TLS(DOT)
# for ubuntu debian
apt-get install knot-dnsutils

# for centos
yum -y install epel-release
yum install knot-utils

# For macOS:
brew install knot

kdig -d @8.8.8.8 +tls-ca +tls-host=dns.google.com ip.sb

Widnows、Linux、MacOS查询客户端 dog
https://github.com/ogham/dog/releases/
dog www.google.com --tls @mydns.duckdns.org:858
dog.exe www.google.com --tls @222.9.148.27:853
dog ibm.com -n 8.8.4.4 -S


Windows DoT客户端 stubby
https://support.quad9.net/hc/en-us/articles/4408347318285-DNS-over-TLS-Windows-10-Stubby-w-GUI-
https://dnsprivacy.org/dns_privacy_daemon_-_stubby/installation/windows_installer_for_stubby/#configuration


安卓客户端
Nebulo
https://apkpure.com/cn/nebulo-dns-changer-for-dns-over-https-tls/com.frostnerd.smokescreen
服务器地址可以是IP地址,安卓系统的只能是域名。可以设置为只获取域名的IPv4地址,防止IPv6网络网速慢,APP打不开。

原文: https://superuser.com/questions/1532975/how-to-query-for-dns-over-https-dns-over-tls-using-command-line

参考:
https://www.alidns.com/faqs/#dns-safe
https://dnsprivacy.org/dns_privacy_clients/
https://dnscrypt.info/implementations
https://github.com/qdm12/dns

公共DNS服务
http://trustcomputing.com.cn/bbs/viewthread.php?tid=1188

[ 本帖最后由 linda 于 2022-10-17 18:00 编辑 ]

TOP

发新话题