From 2344cd77bf67c5050c7808c5f29a4755390bdc5e Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Sun, 11 Feb 2024 01:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20SmartDNS=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06.PVE制作DNS服务器.md | 5 ++++- src/debian/debian_dns_smartdns.conf | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) 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