Skip to content

Instantly share code, notes, and snippets.

@LEXUGE
Created December 17, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LEXUGE/17f5c4a9d77e5fbe2b2a7fe1bd85fb1f to your computer and use it in GitHub Desktop.
Save LEXUGE/17f5c4a9d77e5fbe2b2a7fe1bd85fb1f to your computer and use it in GitHub Desktop.
---
verbosity: 'info'
cache_size: 4096
address: 0.0.0.0:53
table:
- tag: start
if:
qtype:
- AAAA
then:
- disable
- end
else:
- skip
- dispatch
- tag: dispatch
if: any
then:
- query: domestic
- check_secure
- tag: check_secure
if:
geoip:
on: resp
codes:
- CN
else:
- query: secure
- end
upstreams:
- method:
udp:
addr: 114.114.114.114:53
tag: 114DNS
- method:
udp:
addr: 223.6.6.6:53
tag: Ali
- method:
hybrid:
- 114DNS
- Ali
tag: domestic
- method:
https:
no_sni: true
name: cloudflare-dns.com
addr: 1.1.1.1:443
tag: cloudflare
- method:
https:
no_sni: true
name: dns.quad9.net
addr: 9.9.9.9:443
tag: quad9
- method:
hybrid:
- cloudflare
- quad9
tag: secure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment