Fix chinese typo

This commit is contained in:
Nick Peng
2023-06-03 17:46:49 +08:00
parent 83192f5f13
commit d843f0ff87
11 changed files with 72 additions and 69 deletions

View File

@@ -5,7 +5,7 @@ hide:
# 广告屏蔽 # 广告屏蔽
smartdns可以通过指定对应域名返回SOA用于广告屏蔽 smartdns可以通过address选项来屏蔽广告
注意openwrt有luci的方式请参考openwrt屏蔽域名配置方法。 注意openwrt有luci的方式请参考openwrt屏蔽域名配置方法。
@@ -63,7 +63,7 @@ b.com
1. 下载配置文件到`/etc/smartdns`目录 1. 下载配置文件到`/etc/smartdns`目录
```shell ```shell
wget https://github.com/privacy-protection-tools/anti-AD/blob/master/anti-ad-smartdns.conf -o /etc/smartdns/anti-ad-smartdns.conf wget https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf
``` ```
1. 修改/etc/smartdns/smartdns.conf文件包含上述配置文件 1. 修改/etc/smartdns/smartdns.conf文件包含上述配置文件
@@ -78,6 +78,7 @@ b.com
|--|--|--| |--|--|--|
|[anti-AD](https://anti-ad.net/)|Anti Advertising for smartdns|https://anti-ad.net/anti-ad-for-smartdns.conf| |[anti-AD](https://anti-ad.net/)|Anti Advertising for smartdns|https://anti-ad.net/anti-ad-for-smartdns.conf|
|[adrules](https://adrules.top/)|AdRules SmartDNS List|https://adrules.top/smart-dns.conf | |[adrules](https://adrules.top/)|AdRules SmartDNS List|https://adrules.top/smart-dns.conf |
|[neodevhost](https://github.com/neodevpro/neodevhost/)|AdRules SmartDNS List|https://raw.githubusercontent.com/neodevpro/neodevhost/master/lite_smartdns.conf |
## 非smartdns列表 ## 非smartdns列表

View File

@@ -5,7 +5,7 @@ hide:
# 基础配置 # 基础配置
smartdns配置选项功能比较丰富但作为最基本的DNS服务只需要配置服务端口号和上游服务器即可,其他参数默认情况下,对于家庭本地网络已经是最佳配置。 smartdns配置选项功能比较丰富但作为最基本的DNS服务只需要配置服务端口号和上游服务器即可其他参数默认情况下对于家庭本地网络已经是最佳配置,无需做过多的修改
## 配置样例 ## 配置样例

View File

@@ -5,7 +5,7 @@ hide:
# 禁用IPV6 # 禁用IPV6
目前IPV6已经进入千家万户部分情况下,需要禁用IPV6地址smartdns支持如下方式禁用IPV6地址。 目前IPV6已经进入千家万户有时需要禁用IPV6地址smartdns支持如下方式禁用IPV6地址。
1. 方法一完全禁用IPV6 1. 方法一完全禁用IPV6

View File

@@ -5,7 +5,8 @@ hide:
# Bootstrap DNS # Bootstrap DNS
对于域名类的上游服务器SmartDNS会使用其他IP地址类的服务器进行解析所以一般情况下无需配置BootStrap DNS但如果有特殊需求需要指定BootStrap DNS则可以通过如下方式配置 BootStrap DNS一般用于自启动的域名解析如对于域名类的上游服务器此时用于自启动解析域名的DNS称之为BootStrap DNS。
默认情况下SmartDNS会使用其他IP地址类的服务器进行解析所以只要确保有至少一个IP地址类型的DNS上游即可自动解析后续的域名类上游服务器但某些时候需要指定一组DNS专门用于bootstrap域名解析此时可通过如下方式配置
1. 方法一对所有服务器指定bootstrap DNS 1. 方法一对所有服务器指定bootstrap DNS
@@ -27,4 +28,3 @@ hide:
# 此服务器将使用1.2.3.4解析 # 此服务器将使用1.2.3.4解析
server dns.server server dns.server
``` ```

View File

@@ -52,7 +52,7 @@ SmartDNS提供了两种测速模式分别是ping和tcp。smartdns默认使用
## 响应模式配置 ## 响应模式配置
Smartdns支持通过`response-mode`设置首次请求响应模式,这三模式影响查询结果和响应时间smartdns默认使用了优化方案但用户也可根据需要进行修改这三种模式对应的功能和性能如下 Smartdns支持通过`response-mode`设置首次请求响应模式,这三模式影响查询结果和响应时间smartdns默认使用了优化方案但用户也可根据需要进行修改这三种模式对应的功能和性能如下
|模式|配置项|时延|结果|说明 |模式|配置项|时延|结果|说明
|---|---|---|---|--- |---|---|---|---|---
@@ -60,7 +60,7 @@ Smartdns支持通过`response-mode`设置首次请求响应模式,这三中模
|最快IP地址模式|fastest-ip|长|最佳|查询到的所有IP地址中ping最短的IP。DNS查询时间最长IP链接最短。之前模式 |最快IP地址模式|fastest-ip|长|最佳|查询到的所有IP地址中ping最短的IP。DNS查询时间最长IP链接最短。之前模式
|最快响应的DNS模式|fastest-response|短|可能最差|DNS查询等待时间最短。 |最快响应的DNS模式|fastest-response|短|可能最差|DNS查询等待时间最短。
对于开启了缓存功能后,缓存后的数据,无论使用哪种方式,其结果时最佳的,所以不建议关闭缓存。 对于开启了缓存功能后,缓存后的数据,无论使用哪种方式,smartdns都会将最佳结果保存到缓存中,所以不建议关闭缓存。
## 对指定域名设置返回模式 ## 对指定域名设置返回模式

View File

@@ -38,7 +38,7 @@ smartdns可以支持将特定域名使用特定的 DNS 服务器来查询来做
## 更多能力 ## 更多能力
通过上述配置即可实现 DNS 解析分流后,如果需要实现按请求端端口分流,可以配置第二 DNS 服务器,`bind` 配置增加 `--group` 参数指定分流名称。 通过上述配置即可实现 DNS 解析分流后,如果需要实现按请求端端口分流,可以配置第二 DNS 服务器,`bind` 配置增加 `--group` 参数指定分流服务器组名称。
```shell ```shell
bind :7053 -group office bind :7053 -group office

View File

@@ -11,7 +11,9 @@ SmartDNS提供了设置`edns-client-subnet`的能力edns-client-subnet原本
## 跨运营商的IP优化 ## 跨运营商的IP优化
运营商的DNS服务器都是将自己网络的网站或CDN服务器IP给客户端比如qq.com用联通的DNS查询的就是联通网段的IP用电信的查询的就是电信网段的IP。运营商一般不会给你跨网IP。除非某个网站就只有在某个运营商的网络。但某些网站运营商自己网络的ip可能要跨好几个省时延比较大不如同省跨运营商去访问。这时可以通过edns-client-subnet能力查询到一个异网的IP然后再让smartdns测速后返回时延较小的IP给客户端。 运营商的DNS服务器都是将自己网络的网站或CDN服务器IP给客户端比如qq.com用联通的DNS查询的就是联通网段的IP用电信的DNS查询的就是电信网段的IP。
运营商一般不会给你跨网IP除非某个网站就只有在某个运营商的网络。但某些网站运营商自己网络的ip可能要跨好几个省时延比较大不如同省跨运营商去访问。
这时可以通过edns-client-subnet能力查询到一个异网的IP然后再让smartdns测速后返回时延较小的IP给客户端。
### 配置 ### 配置
@@ -38,4 +40,4 @@ server 8.8.8.8 -subnet [广东电信IP]
server 8.8.8.8 -proxy beijing -subnet [广东电信IP] server 8.8.8.8 -proxy beijing -subnet [广东电信IP]
``` ```
这样即使通过北京代理到8.8.8.8查询结果但因为指定了客户端子网为广东电信IP那么8.8.8.8就会范围合适广东电信网络的IP地址。 这样即使通过北京代理到8.8.8.8查询结果但因为指定了客户端子网为广东电信IP那么8.8.8.8就会返回合适广东电信网络的IP地址。

View File

@@ -14,6 +14,32 @@ hide:
## ipset配置 ## ipset配置
1. 基本配置
通过如下参数可以配置指定域名的NFTSet规则
```shell
ipset /domain/ipset
```
1. 超时
SmartDNS设置IPSet支持设置是否启用超时功能这样可以避免NFTSet中过多IP地址网关性能下降。启用方式为
```shell
ipset-timeout yes
```
1. 测速失败后自动添加到IPSet
SmartDNS可以将测速失败的IP地址加入IPSet再由相关IP规则转发
```shell
ipset-no-speed ipsetname
```
## nftset配置
1. 基本配置 1. 基本配置
通过如下参数可以配置指定域名的IPSet规则 通过如下参数可以配置指定域名的IPSet规则
@@ -46,32 +72,6 @@ hide:
nftset-debug yes nftset-debug yes
``` ```
## nftset配置
1. 基本配置
通过如下参数可以配置指定域名的NFTSet规则
```shell
ipset /domain/ipset
```
1. 超时
SmartDNS设置IPSet支持设置是否启用超时功能这样可以避免NFTSet中过多IP地址网关性能下降。启用方式为
```shell
ipset-timeout yes
```
1. 测速失败后自动添加到IPSet
SmartDNS可以将测速失败的IP地址加入IPSet再由相关IP规则转发
```shell
ipset-no-speed ipsetname
```
## 对特定的服务端口设置ipset和nftset ## 对特定的服务端口设置ipset和nftset
smartdns的bind参数支持设置ipset和nftset当设置了ipset和nftset的端口接收到请求后将对此端口的查询请求设置ipset和nftset。 smartdns的bind参数支持设置ipset和nftset当设置了ipset和nftset的端口接收到请求后将对此端口的查询请求设置ipset和nftset。
@@ -82,5 +82,5 @@ smartdns的bind参数支持设置ipset和nftset当设置了ipset和nftset
bind [::]:6053 -ipset [ipset] -nftset [nftset] bind [::]:6053 -ipset [ipset] -nftset [nftset]
``` ```
* -ipset参数选项参考ipset选项。 * -ipset参数选项参考ipset选项。
* -nftset选项参考nftset。 * -nftset选项参考nftset。

View File

@@ -63,7 +63,7 @@ The community provides regularly updated ad-blocking list files for SmartDNS. Yo
1. Download the configuration file to the `/etc/smartdns` directory: 1. Download the configuration file to the `/etc/smartdns` directory:
```shell ```shell
wget https://github.com/privacy-protection-tools/anti-AD/blob/master/anti-ad-smartdns.conf -o /etc/smartdns/anti-ad-smartdns.conf wget https://anti-ad.net/anti-ad-for-smartdns.conf -O /etc/smartdns/anti-ad-smartdns.conf
``` ```
1. Modify the `/etc/smartdns/smartdns.conf` file to include the above configuration file: 1. Modify the `/etc/smartdns/smartdns.conf` file to include the above configuration file:

View File

@@ -60,7 +60,7 @@ SmartDNS supports setting the first request response mode through `response-mode
| Fastest IP address mode | fastest-ip | Long | Best | The IP address with the shortest ping among all queried IP addresses. The longest DNS query time and the shortest IP link. (Previous mode) | Fastest IP address mode | fastest-ip | Long | Best | The IP address with the shortest ping among all queried IP addresses. The longest DNS query time and the shortest IP link. (Previous mode)
| Fastest response DNS mode | fastest-response | Short | Possibly worst | Shortest DNS query waiting time. | Fastest response DNS mode | fastest-response | Short | Possibly worst | Shortest DNS query waiting time.
For cached data after enabling cache function, the results are best regardless of which method is used, so it is not recommended to disable cache. For cached data after the cache function is turned on, no matter which mode is used, smartdns will save the best result in the cache, so it is not recommended to close the cache.
## Set return mode for specified domain name ## Set return mode for specified domain name

View File

@@ -14,6 +14,32 @@ Like Dnsmasq, smartdns supports ipset and nftset, which can use TPROXY to transp
## ipset configuration ## ipset configuration
1. Basic configuration
The following parameters can be used to configure NFTSet rules for specified domain names.
```shell
ipset /domain/ipset
```
1. Timeout
SmartDNS sets IPSet to support enabling timeout function, which can avoid too many IP addresses in NFTSet and reduce gateway performance.
```shell
ipset-timeout yes
```
1. Automatically add to IPSet after speed measurement fails
SmartDNS can add IP addresses that fail the speed measurement to IPSet, and then forward them through related IP rules.
```shell
ipset-no-speed ipsetname
```
## nftset configuration
1. Basic configuration 1. Basic configuration
The following parameters can be used to configure IPSet rules for specified domain names. The following parameters can be used to configure IPSet rules for specified domain names.
@@ -46,32 +72,6 @@ Like Dnsmasq, smartdns supports ipset and nftset, which can use TPROXY to transp
nftset-debug yes nftset-debug yes
``` ```
## nftset configuration
1. Basic configuration
The following parameters can be used to configure NFTSet rules for specified domain names.
```shell
ipset /domain/ipset
```
1. Timeout
SmartDNS sets IPSet to support enabling timeout function, which can avoid too many IP addresses in NFTSet and reduce gateway performance.
```shell
ipset-timeout yes
```
1. Automatically add to IPSet after speed measurement fails
SmartDNS can add IP addresses that fail the speed measurement to IPSet, and then forward them through related IP rules.
```shell
ipset-no-speed ipsetname
```
## Set ipset and nftset for specific service ports ## Set ipset and nftset for specific service ports
The bind parameter of smartdns supports setting ipset and nftset. When the port with ipset and nftset set receives a request, it will set ipset and nftset for the query request of this port. The bind parameter of smartdns supports setting ipset and nftset. When the port with ipset and nftset set receives a request, it will set ipset and nftset for the query request of this port.
@@ -82,5 +82,5 @@ Through the following configuration, all query requests for ports can be set int
bind [::]:6053 -ipset [ipset] -nftset [nftset] bind [::]:6053 -ipset [ipset] -nftset [nftset]
``` ```
* -ipset: Refer to ipset options for parameter options. * -ipset: Refer to ipset options for parameter options.
* -nftset: options refer to nftset. * -nftset: options refer to nftset.