config: rename work mode to speed check mode
This commit is contained in:
@@ -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地址。
|
||||
|
||||
@@ -3,7 +3,7 @@ hide:
|
||||
- toc
|
||||
---
|
||||
|
||||
# 工作模式
|
||||
# 测速模式
|
||||
|
||||
smartdns可修改测速模式,和数据响应模式。这两种模式影响查询的性能和效果。
|
||||
|
||||
@@ -12,7 +12,7 @@ smartdns可修改测速模式,和数据响应模式。这两种模式影响查
|
||||
|测速模式|speed-check-mode|smartdns速度检测模式
|
||||
|响应模式|response-mode|结果回应模式|
|
||||
|
||||
## 测速模式
|
||||
## 速度检测模式
|
||||
|
||||
SmartDNS提供了两种测速模式,分别是ping和tcp。smartdns默认使用三次测速。第一次为ping,第二次为tcp的80端口,第三次为tcp的443端口,可通过speed-check-mode修改测速模式
|
||||
|
||||
@@ -84,7 +84,7 @@ nav:
|
||||
- 双栈优选: 'config/dualstack.md'
|
||||
- 禁用IPV6: 'config/block-ipv6.md'
|
||||
- DNS分流: 'config/domain-forwarding.md'
|
||||
- 工作模式: 'config/work-mode.md'
|
||||
- 测速模式: 'config/check-speed-mode.md'
|
||||
- 安全相关: 'config/security.md'
|
||||
- 解析本地主机名: 'config/resolv-dnsmasq-lease.md'
|
||||
- Bootstrap DNS: 'config/bootstrap-dns.md'
|
||||
|
||||
Reference in New Issue
Block a user