mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新 SmartDNS 参数
This commit is contained in:
+4
-1
@@ -305,6 +305,8 @@ $ sudo nvim /etc/smartdns/smartdns.conf
|
||||
|
||||
- `SmartDNS` 端口监听参数为 `6053@lo` ,请根据实际情况进行调整
|
||||
|
||||
- `edns-client-subnet` 为 EDNS 客户端子网,演示中 `202.103.24.68` 为湖北武汉市 DNS 服务器地址,请根据实际情况进行调整
|
||||
|
||||
- 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整
|
||||
|
||||
```bash
|
||||
@@ -333,7 +335,6 @@ conf-file /etc/smartdns.d/bogus-nxdomain.china.smartdns.conf
|
||||
cache-file /tmp/smartdns.cache
|
||||
|
||||
log-level notice
|
||||
max-query-limit 1024
|
||||
restart-on-crash yes
|
||||
|
||||
bind [::]:6053@lo
|
||||
@@ -346,6 +347,8 @@ prefetch-domain yes
|
||||
serve-expired-prefetch-time 21600
|
||||
|
||||
force-qtype-SOA 65
|
||||
max-query-limit 1024
|
||||
edns-client-subnet 202.103.24.68
|
||||
|
||||
server-tcp 119.29.29.29 -group dnspod -exclude-default-group
|
||||
server-tcp 2402:4e00:: -group dnspod -exclude-default-group
|
||||
|
||||
@@ -23,7 +23,6 @@ conf-file /etc/smartdns.d/bogus-nxdomain.china.smartdns.conf
|
||||
cache-file /tmp/smartdns.cache
|
||||
|
||||
log-level notice
|
||||
max-query-limit 1024
|
||||
restart-on-crash yes
|
||||
|
||||
bind [::]:6053@lo
|
||||
@@ -36,6 +35,8 @@ prefetch-domain yes
|
||||
serve-expired-prefetch-time 21600
|
||||
|
||||
force-qtype-SOA 65
|
||||
max-query-limit 1024
|
||||
edns-client-subnet 202.103.24.68
|
||||
|
||||
server-tcp 119.29.29.29 -group dnspod -exclude-default-group
|
||||
server-tcp 2402:4e00:: -group dnspod -exclude-default-group
|
||||
|
||||
Reference in New Issue
Block a user