DNS Awesome
推荐 DNS 配置
- 选择支持分流的 DNS 服务、支持 DoH/DoT 解析的服务
- AdGuard、PiHole
- 默认走国内 DNS
- 因为国内很多服务 CDN 依赖 DNS 解析,使用国外 DNS 可能导致 CDN 出问题,访问非常慢或打不开
- 国内 DNS 更快
- 选择会被污染的域名走 DoH/DoT 解析
- DoH 和 DoT 不会被污染
- 即便是用国外的 DNS over TCP/UDP 也是会被污染的,协议层不安全
- 域名.信息
- alidns
- 工具
- DoT 853 被 GFW 拦截
- Lookup Client
- nslookup
- host
- dig - bind-tools
- kdig - knot-dnsutils
- drill from NLnetLabs/ldns
- 输入输出接近 dig
- ameshkov/dnslookup
- MIT, Go
- natesales/q
- GPLv3, Go
- ogham/dog
- EUPL1.2, Rust
- TLD
- https://dnschecker.org/public-dns/cn
- https://public-dns.info/nameserver/cn.html
curl 'https://dns.google/resolve?name=wener.me&type=A'
Server
- knot dns
- knot resolver
- unbound
- bind
- coredns
- nsd
- dnsdist
- dnscrypt
- pdns recursor
- pdns
- kea
- 提供 perfdhcp 压测工具
- serverless-dns/serverless-dns
- adguardhome
Block
- 0xERR0R/blocky
- nicholasb2101/PiHole
- https://gist.github.com/michaelx/316dc4882f125a8325150e4e2fa9edd6
- https://firebog.net/
- privacy-protection-tools/anti-AD
- Mosney/anti-anti-AD
- neoFelhz/neohosts
- vokins/yhosts
- blocklistproject/Lists
- https://github.com/nextdns/metadata/tree/master/privacy
- blocklisk 拦截列表
- native 系统级跟踪列表
- jdlingyu/ad-wars
- https://github.com/badmojr/1Hosts
- AdguardTeam/AdguardFilters
- AdguardTeam/AdGuardSDNSFilter
curl https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts -so ad-wars.txt
# 拆分为 1000 列表方便 cloudflare 导入
grep '127.0.0.1' ad-wars.txt | grep -v '#' | awk '{print $2}' | sort -u | split -l 1000 -d --additional-suffix '.csv' - ad-wars-
Protocol
nmae | abbr. | schema |
---|---|---|
DNS-over-UDP/53 | Do53 | |
DNS-over-TCP/53 | Do53/TCP | tcp:// |
DNSCrypt | sdns:// | |
DNS-over-TLS | DoT | tls:// |
DNS-over-HTTPS | DoH | https:// |
DNS-over-TOR | ||
Oblivious DNS-over-HTTPS | ODoH | |
DNS-over-QUIC | quic://:763 |
- Oblivious DNS over HTTPS - ODoH
- 避免 Provider 感知到用户 IP - 类似 anonymized DNScrypt
- https://blog.cloudflare.com/oblivious-dns/
- https://tools.ietf.org/html/draft-pauly-dprive-oblivious-doh-03
- cloudflare/odoh-go
- https://dnsprivacy.org/dns_privacy_clients/
- DoT
# Resolve
# dig - bind-utils
dig wener.me @114.114.114.114
dig wener.me @114.114.114.114 +tcp
# DoH
# knot-dnsutils
kdig -d @8.8.8.8 +tls-ca +tls-host=dns.google.com wener.me
# 直接请求 DoH
curl -H 'accept: application/dns-json' 'https://dns.cloudflare.com/dns-query?name=wener.me&type=A' | jq .
# curl 使用 DoT 解析
curl --doh-url https://dns.cloudflare.com/dns-query https://wener.me
mDNS
- hashicorp/mdns
- MIT, Golang
- Simple mDNS client/server library
- pion/mdns
- MIT, Go
- Pure Go implementation of Multicast DNS
Forwarder/Proxy
- IrineSistiana/mosdns
- GPLv3, Golang
- DNS Forwarder
- AdguardTeam/dnsproxy
- looterz/grimd
- MIT, Golang
Misc
GFW
Well Known Domains
domain | for |
---|---|
https://pki.goog | Google Trust Services |
Public DNS
- | Primary | Secondary | IPv6 Primary | IPv6 Secondary | DoH | DoT |
---|---|---|---|---|---|---|
Alibaba | 223.5.5.5 | 223.6.6.6 | 2400:3200::1 | 2400:3200:baba::1 | https://dns.alidns.com/dns-query | tls://dns.alidns.com |
南京信风 | 114.114.114.114 | 114.114.115.115 | ||||
南京信风 Safe | 114.114.114.119 | 114.114.115.119 | ||||
南京信风 Family | 114.114.114.110 | 114.114.115.110 | ||||
DNSPod | 119.29.29.29 | |||||
中国电信 | 218.102.23.228 | 218.108.23.1 | ||||
中国互联网络信息中心 | 1.2.4.8 | |||||
香港 | 206.80.96.10 | 206.80.96.9 | ||||
香港 | 203.80.96.10 | 203.80.96.9 | ||||
香港 | 61.10.0.130 | 61.10.1.130 | ||||
台湾中华 | 168.95.1.1 | 168.95.192.1,168.95.1.2 | ||||
Baidu | 180.76.76.76 | |||||
网通 | 106.185.46.149 | |||||
联通 | 121.40.240.227 | |||||
电信 | 139.196.12.167 | |||||
国外 | ||||||
韩国长安大学 | 168.126.63.1 | 168.126.63.2 | ||||
韩国 | 168.126.63.15 | 168.126.63.16 | ||||
韩国 | 112.106.53.22 | 112.105.54.34,112.106.23.34 | ||||
8.8.8.8 | 8.8.4.4 | 2001:4860:4860::8888 | 2001:4860:4860::8844 | https://dns.google/dns-query | tls://dns.google | |
美国赛门铁克诺顿 | 198.153.194.1 | 198.153.192.1 | ||||
OpenDNS | 208.67.222.222 | 208.67.220.220 | ||||
美国 Psychz | 208.87.241.170 | |||||
美国 | 64.81.45.2 | |||||
? | 23.41.21.106 | 23.45.157.25 | ||||
Pacific SuperNet | 202.14.67.4 | 202.238.95.26 | ||||
Pacific SuperNet | 202.238.95.24 | 202.14.67.14 | ||||
日本 MINET | 203.112.2.4 | 203.112.2.5 | ||||
203.112.2.4 | 203.112.2.5 | |||||
202.45.84.58 | 202.45.84.59 | |||||
202.67.240.221 | 202.67.240.220 | |||||
202.69.209.5 | 202.69.209.133 | |||||
202.81.252.1 | 202.81.252.2 | |||||
202.98.198.167 | 202.98.192.67 | |||||
123.125.81.6 | 123.206.21.48 | |||||
4.4.4.4 | ||||||
101.226.4.6 | ||||||
210.2.4.8 | ||||||
Cloudflare | 1.1.1.1 | 1.0.0.1 | 2606:4700:4700::1111 | 2606:4700:4700::1001 | https://dns.cloudflare.com/dns-query | tls://1dot1dot1dot1.cloudflare-dns.com |
Cloudflare Security | 1.1.1.2 | 1.0.0.2 | 2606:4700:4700::1112 | 2606:4700:4700::1002 | https://security.cloudflare-dns.com/dns-query | tls://security.cloudflare-dns.com |
Cloudflare Family | 1.1.1.3 | 1.0.0.3 | 2606:4700:4700::1113 | 2606:4700:4700::1003 | https://family.cloudflare-dns.com/dns-query | tls://family.cloudflare-dns.com |
- Safe - block phishing, malcious and other unsafe websites
- Family - block adult websites and inappropriate contents
- Cloudflare Security - Malware blocking
污染封禁域名列表
不要走国内解析
# for dnsmasq
curl -L https://raw.githubusercontent.com/wenerme/wener/master/notes/service/dns/gfwlist.txt \
| sed -E 's#.+#address=/&/172.32.1.1#'
#
curl -L https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt | base64 -d > gfwlist.txt
# address=/docker.io/$SNI
curl -sfL 'https://github.com/wenerme/wener/raw/master/notes/service/dns/gfwlist.dev.txt' | sed -e 's#.*#address=/\0/$SNI#'
grep -E '^([|]{2}|[.])' gfwlist.txt | grep -v '/' | grep -v '[*]' | wc -l | sed 's/^[|.]*//' | sort -u
Bypass
netflix.com
netflix.net
chat.openai.com
bard.google.com
- https://github.com/v2fly/domain-list-community/blob/master/data/netflix
- https://www.netify.ai/resources/applications/netflix
- https://github.com/gfwlist/gfwlist
- 中华人民共和国被封锁网站列表
- https://github.com/paulmillr/encrypted-dns
CDN
- ghcr.io -> pkg-containers.githubusercontent.com
reverse
- 112.46.2.37
- pcs.baidu.com
- 百度网盘
- public-dns-a.baidu.com