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

@@ -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:
```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:

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 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

View File

@@ -14,6 +14,32 @@ Like Dnsmasq, smartdns supports ipset and nftset, which can use TPROXY to transp
## 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
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 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
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]
```
* -ipset: Refer to ipset options for parameter options.
* -nftset: options refer to nftset.
* -ipset: Refer to ipset options for parameter options.
* -nftset: options refer to nftset.