update document for new options.

This commit is contained in:
Nick Peng
2023-08-06 22:00:31 +08:00
parent 00d22d7120
commit 8f7372adcd
6 changed files with 60 additions and 6 deletions

View File

@@ -37,6 +37,19 @@ smartdns可以通过address选项来屏蔽广告。
address /sub.example.com/-
```
1. 前缀通配与主域名匹配
```shell
// 通配
*-a.example.com
// 仅匹配子域名
*.example.com
// 仅匹配主域名
-.example.com
```
注意:* 和 - 仅支持写在域名开头。其他位置的写法均不支持。
## 使用域名集合
对于单个域名屏蔽可以方便使用address参数屏蔽对于较多的域名可通过域名集合屏蔽更加方便管理广告域名列表。

View File

@@ -27,6 +27,19 @@ address除了可以设置屏蔽广告外还可以指定域名的IP地址。
address /example.com/::1
```
1. 前缀通配与主域名匹配
```shell
// 通配
*-a.example.com
// 仅匹配子域名
*.example.com
// 仅匹配主域名
-.example.com
```
注意:* 和 - 仅支持写在域名开头。其他位置的写法均不支持。
## 自动扩展address对应的PTR记录
如果想扩展上述address对应的PTR记录可以使用`expand-ptr-from-address`开关开启自动扩展。`expand-ptr-from-address`参数可以重复设置,参数对设置后的`address`生效。