最後更新: 2024-07-24
目錄
DNS Server
Mini:
- dnsmasq
Normal:
- bind
- maradns
- pdns-server
DNS Tools
- dig
- whois
- djbdns - A collection of Domain Name System tools
- ddns3-client - Issues dynamic DNS v3 requests
Domain name valid characters
- a-z
- A-Z
- 0-9
- -
Remark
只有 TXT, SRV, CNAME 可以用 underscore (_)
DNS Type
DoH(DNS over HTTPS)
via the HTTPS (POST/GET)
LINK=https://cloudflare-dns.com/dns-query
e.g.
curl --header "accept: application/dns-json" \
"${LINK}?name=example.com&type=A"
curl -s --header "accept: application/dns-json" \
"${LINK}?name=example.com&type=A" | jq .
Output 說明
- Status # 0=NoError, 3=NXDomain # 詳見
- AD # If true, it means that every record in the answer was verified with DNSSEC.
DoT(DNS over TLS)
Port: 853/TCP
Android 9 and Android 10 support DNS over TLS to secure your queries through encryption.
好處
- 1.1.1.1 does not need to be configured for each new Wi-Fi network
Setup
Settings > Network & internet > Advanced > Private DNS
Private DNS provider hostname: one.one.one.one
Public DNS
國外 DNS
Cloudflare
- 1.1.1.1
- 1.0.0.1
- 1.1.1.3 # Block malware and adult content
- 1.0.0.3
URL Test
-
Block malware
https://security.cloudflare-dns.com/dns-query -
Block malware and adult content
https://family.cloudflare-dns.com/dns-query
- 8.8.8.8
- 8.8.4.4
OpenDNS
- 208.67.222.222
- 208.67.220.220
國內 DNS
114DNS
- IP1: 114.114.114.114
- IP2: 114.114.115.115
阿里
- IP1: 223.5.5.5
- IP2: 223.6.6.6
- DOH/DOT: dns.alidns.com