mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
documentation: Update DNS manual
This commit is contained in:
parent
de6f53b03f
commit
f70b6b44d2
@ -336,9 +336,9 @@ flowchart TB
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
=== ":material-dns: DNS rules (1.9.0+)"
|
=== ":material-dns: DNS rules (Enhanced, but slower) (1.9.0+)"
|
||||||
|
|
||||||
=== ":material-shield-off: With DNS Leaks"
|
=== ":material-shield-off: With DNS leaks"
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -376,7 +376,16 @@ flowchart TB
|
|||||||
"server": "google"
|
"server": "google"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rule_set": "geoip-cn",
|
"type": "logical",
|
||||||
|
"mode": "and",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-geolocation-!cn"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geoip-cn"
|
||||||
|
}
|
||||||
|
],
|
||||||
"server": "local"
|
"server": "local"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -389,6 +398,12 @@ flowchart TB
|
|||||||
"format": "binary",
|
"format": "binary",
|
||||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-geolocation-!cn",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "remote",
|
"type": "remote",
|
||||||
"tag": "geoip-cn",
|
"tag": "geoip-cn",
|
||||||
@ -398,14 +413,18 @@ flowchart TB
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"experimental": {
|
"experimental": {
|
||||||
|
"cache_file": {
|
||||||
|
"enabled": true,
|
||||||
|
"store_rdrc": true
|
||||||
|
},
|
||||||
"clash_api": {
|
"clash_api": {
|
||||||
"default_mode": "Leak"
|
"default_mode": "Enhanced"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
=== ":material-security: Without DNS Leaks (1.9.0-alpha.2+)"
|
=== ":material-security: Without DNS leaks, but slower (1.9.0-alpha.2+)"
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -439,7 +458,16 @@ flowchart TB
|
|||||||
"server": "local"
|
"server": "local"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rule_set": "geoip-cn",
|
"type": "logical",
|
||||||
|
"mode": "and",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"rule_set": "geosite-geolocation-!cn"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule_set": "geoip-cn"
|
||||||
|
}
|
||||||
|
],
|
||||||
"server": "google",
|
"server": "google",
|
||||||
"client_subnet": "114.114.114.114" // Any China client IP address
|
"client_subnet": "114.114.114.114" // Any China client IP address
|
||||||
}
|
}
|
||||||
@ -453,6 +481,12 @@ flowchart TB
|
|||||||
"format": "binary",
|
"format": "binary",
|
||||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "remote",
|
||||||
|
"tag": "geosite-geolocation-!cn",
|
||||||
|
"format": "binary",
|
||||||
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "remote",
|
"type": "remote",
|
||||||
"tag": "geoip-cn",
|
"tag": "geoip-cn",
|
||||||
@ -460,6 +494,15 @@ flowchart TB
|
|||||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"experimental": {
|
||||||
|
"cache_file": {
|
||||||
|
"enabled": true,
|
||||||
|
"store_rdrc": true
|
||||||
|
},
|
||||||
|
"clash_api": {
|
||||||
|
"default_mode": "Enhanced"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user