pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
7.93k stars 1.05k forks source link

server-name 异常 #1670

Open ziojacky opened 4 months ago

ziojacky commented 4 months ago

我在主路由使用smartdns做dns服务器,默认主路由局域网的ip server-name (ptr)记录为hostname,但是外网的网关ip ptr也会被设置成一样的server-name,也就是第二跳的ip,不知道从哪个版本开始有这个问题了.

PikuZheng commented 4 months ago

建议设 resolv-hostname no 和 expand-ptr-from-address yes 然后将正确的记录使用 address 写死

ziojacky commented 4 months ago

建议设 resolv-hostname no 和 expand-ptr-from-address yes 然后将正确的记录使用 address 写死

设置了esolv-hostname为0没有啥效果,而且下一跳的网关ip根本也不是路由本机的ip,不知道为什么ptr也会被强制成hostname, 应该是个bug,

PikuZheng commented 4 months ago

有没有可能是网络上有重名 或者开debug日志看看这个结果哪来的