mokeyish / smartdns-rs

A cross platform local DNS server (Dnsmasq like) written in rust to obtain the fastest website IP for the best Internet experience, supports DoT, DoQ, DoH, DoH3.
GNU General Public License v3.0
520 stars 35 forks source link

expand-ptr-from-address选项无效 #308

Open haiger01 opened 1 month ago

haiger01 commented 1 month ago

expand-ptr-from-address选项无效,什么时候支持呀?

mokeyish commented 1 month ago

这个参数什么意思?原理是啥?

haiger01 commented 2 weeks ago

例如生成一个自定义DNS配置文件dns.hosts包含在配置选项hosts-file /etc/smartdns/hosts/dns.hosts里面,配置文件内容为 root@devdb:~/dns/smartdns# cat hosts/dns.hosts 1.1.1.1 aa.aa 2.2.2.2 bb.bb

配置expand-ptr-from-address yes后 正常dig aa.aa @127.0.0.1 解析为1.1.1.1 dig -x 1.1.1.1 @127.0.0.1 解析出来的域名应该为aa.aa

目前配置expand-ptr-from-address yes后 dig aa.aa正常,dig -x 1.1.1.1异常,自定义域名解析及IP反向解析应该高于外部解析

mokeyish commented 1 week ago

好的,等这个 PR 被上游合并,就加上来。

https://github.com/mokeyish/hickory-dns/commit/51b12133edae6838544495d944c736b0340bf926

haiger01 commented 6 days ago

非常感谢!

haiger01 commented 6 days ago

hosts-file /etc/smartdns/hosts/*

hosts-file /etc/smartdns/hosts/dns.hosts 另外如上所示,配置文件选项里面能否支持通配符加载多个配置文件呀,多个配置文件多行加载不是很友好

mokeyish commented 4 days ago

已经支持 https://github.com/mokeyish/smartdns-rs/pull/335 。 打包的版本在这:https://github.com/mokeyish/smartdns-rs/actions/runs/10015510298