Update dns.md

This commit is contained in:
mzz 2023-03-17 00:43:24 +08:00 committed by GitHub
parent 80d9091d68
commit 5d23ce1e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,9 +59,11 @@ dns {
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
request {
qname(geosite:cn) -> alidns
fallback: googledns
routing {
request {
qname(geosite:cn) -> alidns
fallback: googledns
}
}
}
```
@ -73,13 +75,15 @@ dns {
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
request {
fallback: alidns
}
response {
upstream(googledns) -> accept
!qname(geosite:cn) && ip(geoip:private) -> googledns
fallback: accept
routing {
request {
fallback: alidns
}
response {
upstream(googledns) -> accept
!qname(geosite:cn) && ip(geoip:private) -> googledns
fallback: accept
}
}
}
```