config: rename work mode to speed check mode

This commit is contained in:
Nick Peng
2023-03-16 20:11:31 +08:00
parent b388ca1504
commit af557bda6a
3 changed files with 17 additions and 17 deletions

View File

@@ -9,20 +9,20 @@ smartdns配置选项功能比较丰富但作为最基本的DNS服务
## 配置样例
在smartdns.conf配置文件中包含配置如下即可提供服务并对DNS查询加速
1. 在smartdns.conf配置文件中包含配置如下即可提供服务并对DNS查询加速
```shell
# 监听53端口
bind [::]:53
# 配置上游服务器
server 8.8.8.8
server 114.114.114.114
server 202.96.128.166:53
server-tls 1.1.1.1
```
```shell
# 监听53端口
bind [::]:53
# 配置上游服务器
server 8.8.8.8
server 114.114.114.114
server 202.96.128.166:53
server-tls 1.1.1.1
```
选项中:
选项中:
* bind表示开启服务端并监听对应的端口`:53`表示绑定IPV4的53端口`[::]:53`表示绑定IPV6的53端口后者在大部分系统中同时也绑定了IPV4端口。
* server表示上游服务器IP地址端口可以省略。如需要安全访问上游可以使用server-tls, server-https。也可以使用URI方式如server tls://1.1.1.1:853
* server不指定的情况下将会自动读取`/etc/resolv.conf`文件中的系统DNS地址。
* bind表示开启服务端并监听对应的端口`:53`表示绑定IPV4的53端口`[::]:53`表示绑定IPV6的53端口后者在大部分系统中同时也绑定了IPV4端口。
* server表示上游服务器IP地址端口可以省略。如需要安全访问上游可以使用server-tls, server-https。也可以使用URI方式如server tls://1.1.1.1:853
* server不指定的情况下将会自动读取`/etc/resolv.conf`文件中的系统DNS地址。