kkkgo / PaoPaoDNS

泡泡DNS是一个能一键部署递归DNS的docker镜像
https://blog.03k.org/post/paopaodns.html
GNU General Public License v3.0
832 stars 63 forks source link

RULES_TTL 中指定域名的记录不生效 #72

Closed kbrx93 closed 11 months ago

kbrx93 commented 11 months ago

在提交之前,请确认

脚本自检日志

[info] ========== env info ==========
====ENV TEST====
[OK]DATA_writeable-
[OK]DATA_readable-
MEM:400m 800m 500000 900mb
prefPC:82
CORES:-2-
POWCORES:-2-
ulimit :-1048576-
FDLIM :-4096-
TZ:-Asia/Shanghai-
UPDATE:-weekly-
DNS_SERVERNAME:-PaoPaoDNS-
SERVER_IP:-10.0.0.139-
ETHIP:-172.20.0.2-
DNSPORT:-53-
SOCKS5:-@10.0.0.202:6153-
CNAUTO:-yes-
IPV6:-no-
CNFALL:-yes-
CUSTOM_FORWARD:-198.18.0.2:53-
AUTO_FORWARD:-yes-
AUTO_FORWARD_CHECK:-yes-
USE_MARK_DATA:-yes-
RULES_TTL:-1-
CUSTOM_FORWARD_TTL:-1-
SHUFFLE:-no-
CN_TRACKER:-yes-
USE_HOSTS:-no-
HTTP_FILE:-yes-
SAFEMODE:--
QUERY_TIME:-2000ms-
ADDINFO:-no-
PLATFORM:-Linux e2cf3cd6315b 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 Linux-

问题描述和复现步骤

RULES_TTL 设置为 1,同时 force_ttl_rules.txt 中 增加 www.baidu.com@@1.2.3.4 本地清除 DNS 后,发现 拿到的 百度 IP 还是正常的 IP,并非自定义的 1.2.3.4

kkkgo commented 11 months ago

开一下addinfo功能,然后用dig命令查询结果来源

kbrx93 commented 11 months ago

本地销毁,相同配置重建一个镜像就好了,可能还是有一部分缓存的原因。