diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index faffc5b..86b635c 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -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 diff --git a/src/debian/debian_dns_smartdns.conf b/src/debian/debian_dns_smartdns.conf index 5f6eee7..bd7ec5a 100644 --- a/src/debian/debian_dns_smartdns.conf +++ b/src/debian/debian_dns_smartdns.conf @@ -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