diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index a38a49b..a434a65 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -216,7 +216,7 @@ $ mkdir -p /tmp/SmartDNS $ cd /tmp/SmartDNS ## 下载 SmartDNS 安装包 -$ curl -LR -O https://github.com/pymumu/smartdns/releases/download/Release46.1/smartdns.1.2025.03.02-1533.x86_64-linux-all.tar.gz +$ curl -LR -O https://github.com/pymumu/smartdns/releases/download/Release47/smartdns.1.2025.09.18-2244.x86_64-linux-all.tar.gz ## 解压缩 SmartDNS 安装包 $ tar zxf smartdns.*.x86_64-linux-all.tar.gz @@ -335,7 +335,9 @@ $ sudo editor /etc/smartdns/smartdns.conf **额外说明:** -- `SmartDNS` 端口监听参数为 `6053@lo` ,请根据实际情况进行调整 +- `SmartDNS` 端口监听参数为 `6053@lo` ,WebUI 端口监听参数为 `5380` ,请根据实际情况进行调整 + +- WebUI 默认用户名密码为 `admin/password` ,若需公网访问建议将默认密码修改为强密码 - 检查配置文件中关于本地域名及其上游 DNS 服务器相关配置,请根据实际情况进行调整 @@ -359,6 +361,18 @@ conf-file /etc/smartdns.d/*.conf log-level notice log-console yes +log-size 16M +log-num 8 + +audit-enable yes +audit-SOA yes +audit-size 16M +audit-num 8 + +plugin smartdns_ui.so +smartdns-ui.ip https://[::]:5380 +smartdns-ui.token-expire 1800 +smartdns-ui.max-query-log-age 604800 bind [::]:6053@lo bind-tcp [::]:6053@lo @@ -385,6 +399,8 @@ server-tcp 2400:3200::1 -bootstrap-dns server-tls dot.pub server-tls dns.alidns.com +server-quic dns.alidns.com + server-https https://doh.pub/dns-query server-https https://dns.alidns.com/dns-query diff --git a/src/debian/debian_dns_smartdns.conf b/src/debian/debian_dns_smartdns.conf index 8c221d9..173c7ea 100644 --- a/src/debian/debian_dns_smartdns.conf +++ b/src/debian/debian_dns_smartdns.conf @@ -17,6 +17,18 @@ conf-file /etc/smartdns.d/*.conf log-level notice log-console yes +log-size 16M +log-num 8 + +audit-enable yes +audit-SOA yes +audit-size 16M +audit-num 8 + +plugin smartdns_ui.so +smartdns-ui.ip https://[::]:5380 +smartdns-ui.token-expire 1800 +smartdns-ui.max-query-log-age 604800 bind [::]:6053@lo bind-tcp [::]:6053@lo @@ -43,6 +55,8 @@ server-tcp 2400:3200::1 -bootstrap-dns server-tls dot.pub server-tls dns.alidns.com +server-quic dns.alidns.com + server-https https://doh.pub/dns-query server-https https://dns.alidns.com/dns-query