We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题现象 config设置输出/var/log/smartdns.log, 但是并不生成这个文件; DNS解析应答会时不时变成REFUSE
运行环境
OS: Armbian (24.11.0) aarch64 ███████████████████████ Host: Phicomm N1 ▄▄██ ██▄▄ Kernel: 6.6.48-ophub ▄▄██ ███████████ ██▄▄ Uptime: 15 mins ▄▄██ ██ ██ ██▄▄ Packages: 564 (dpkg) ▄▄██ ██ ██ ██▄▄ Shell: bash 5.2.15 ▄▄██ ██ ██ ██▄▄ Terminal: /dev/pts/0 ▄▄██ █████████████ ██▄▄ CPU: ARMv8 rev 4 (v8l) (4) @ 1.512GHz ▄▄██ ██ ██ ██▄▄ Memory: 177MiB / 1792MiB
运营商
smartdns 1.2024.06.12-2222 (Release46)
涉及的配置(注意去除个人相关信息)
UDP监听端口 bind [::]:1053 #上游DNS server 1.0.0.1 server 1.1.1.1 server 208.67.220.220 server 9.9.9.9 server-tls 1.1.1.1:853 -host-name cloudflare-dns.com -tls-host-verify cloudflare-dns.com server-tls 1.0.0.1:853 -host-name cloudflare-dns.com -tls-host-verify cloudflare-dns.com server-https https://1.1.1.1/dns-query -host-name cloudflare-dns.com -tls-host-verify cloudflare-dns.com http-host cloudflare-dns.com server-https https://1.0.0.1/dns-query -host-name cloudflare-dns.com -tls-host-verify cloudflare-dns.com http-host cloudflare-dns.com #日志文件 log-file /var/log/smartdns.log #缓存记录条数 cache-size 16384 #最小TTL值,单位秒 rr-ttl-min 600 #TTL接近过期时会自动查询并更新缓存结果(与下面不同的是,这会省去了客户端等待DNS重新请求的时间,代价是会消耗更多CPU) prefetch-domain yes #TTL过期后会返回 TTL=0 给客户端并重新查询和缓存结果 serve-expired yes #v4与v6对比取最快结果,默认即为yes dualstack-ip-selection yes #针对 IOS 14 系统查询缓慢问题,关闭TYPE65记录查询 force-qtype-SOA 65
重现步骤
上游DNS配置。 server 1.0.0.1 server 1.1.1.1 server 208.67.220.220 server 9.9.9.9
访问的域名。 任何域名
信息收集
The text was updated successfully, but these errors were encountered:
建议先前台运行看看控制台输出
Sorry, something went wrong.
经测试, 没有输出log是因为没有这行log-level. 它甚至都没有生成log文件。 建议一般来说缺省设置的话,还是应该建立log文件,并且在启动和关闭的时候,输出一点精简的信息到log?
至于解析变成REFUSE (pihole显示)的问题,我需要继续观察一下原因
默认值是error
大致测了一下没有日志输出时确实不会建立日志文件
No branches or pull requests
问题现象
config设置输出/var/log/smartdns.log, 但是并不生成这个文件;
DNS解析应答会时不时变成REFUSE
运行环境
运营商
smartdns 1.2024.06.12-2222 (Release46)
涉及的配置(注意去除个人相关信息)
重现步骤
上游DNS配置。
server 1.0.0.1
server 1.1.1.1
server 208.67.220.220
server 9.9.9.9
访问的域名。
任何域名
信息收集
在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
coredump文件在/tmp目录下
The text was updated successfully, but these errors were encountered: