Overture是一个定制的DNS中继服务器。
在此下在二进制版本
https://github.com/shawn1m/overture/releases
默认配置文件./config.yml
bindAddress: :53
debugHTTPAddress: 127.0.0.1:5555
dohEnabled: false
primaryDNS:
- name: DNSPod
address: 119.29.29.29:53
protocol: udp
socks5Address:
timeout: 6
ednsClientSubnet:
policy: disable
externalIP:
noCookie: true
alternativeDNS:
- name: 114DNS
address: 114.114.114.114:53
protocol: udp
socks5Address:
timeout: 6
ednsClientSubnet:
policy: disable
externalIP:
noCookie: true
onlyPrimaryDNS: false
ipv6UseAlternativeDNS: false
alternativeDNSConcurrent: false
whenPrimaryDNSAnswerNoneUse: primaryDNS
ipNetworkFile:
primary: ./ip_network_primary_sample
alternative: ./ip_network_alternative_sample
domainFile:
primary: ./domain_primary_sample
alternative: ./domain_alternative_sample
matcher: full-map
hostsFile:
hostsFile: ./hosts_sample
finder: full-map
minimumTTL: 0
domainTTLFile: ./domain_ttl_sample
cacheSize: 0
cacheRedisUrl: redis://localhost:6379/0
cacheRedisConnectionPoolSize: 10
rejectQType:
- 255
支持ECS的DNS服务器
DNSPod 119.29.29.29:53
UDP服务的
liangyuyue@YuyueMacBook-Air ~ % dig @192.168.10.93 baidu.com
; <<>> DiG 9.10.6 <<>> @192.168.10.93 baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40819
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;baidu.com. IN A
;; ANSWER SECTION:
baidu.com. 90 IN A 110.242.68.66
baidu.com. 90 IN A 39.156.66.10
;; Query time: 70 msec
;; SERVER: 192.168.10.93#53(192.168.10.93)
;; WHEN: Sun Dec 24 22:10:29 CST 2023
;; MSG SIZE rcvd: 88
liangyuyue@YuyueMacBook-Air ~ % dig @119.29.29.29 taobao.com
; <<>> DiG 9.10.6 <<>> @119.29.29.29 taobao.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50854
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;taobao.com. IN A
;; ANSWER SECTION:
taobao.com. 95 IN A 106.11.226.158
taobao.com. 95 IN A 59.82.122.115
;; Query time: 15 msec
;; SERVER: 119.29.29.29#53(119.29.29.29)
;; WHEN: Sun Dec 24 18:02:15 CST 2023
;; MSG SIZE rcvd: 60