Skip to content

Commit

Permalink
documentation: Update DNS manual
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Mar 15, 2024
1 parent 2c24391 commit ee280ba
Showing 1 changed file with 50 additions and 7 deletions.
57 changes: 50 additions & 7 deletions docs/manual/proxy/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ 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
{
"dns": {
Expand Down Expand Up @@ -376,7 +376,16 @@ flowchart TB
"server": "google"
},
{
"rule_set": "geoip-cn",
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn"
},
{
"rule_set": "geoip-cn"
}
],
"server": "local"
}
]
Expand All @@ -389,6 +398,12 @@ flowchart TB
"format": "binary",
"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",
"tag": "geoip-cn",
Expand All @@ -398,14 +413,18 @@ flowchart TB
]
},
"experimental": {
"cache_file": {
"enabled": true,
"store_rdrc": true
},
"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
{
Expand Down Expand Up @@ -439,7 +458,16 @@ flowchart TB
"server": "local"
},
{
"rule_set": "geoip-cn",
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn"
},
{
"rule_set": "geoip-cn"
}
],
"server": "google",
"client_subnet": "114.114.114.114" // Any China client IP address
}
Expand All @@ -453,13 +481,28 @@ flowchart TB
"format": "binary",
"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",
"tag": "geoip-cn",
"format": "binary",
"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"
}
}
}
```
Expand Down

0 comments on commit ee280ba

Please sign in to comment.