Skip to content
New issue

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

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

Closed
haiger01 opened this issue Jun 14, 2024 · 7 comments
Closed

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

haiger01 opened this issue Jun 14, 2024 · 7 comments

Comments

@haiger01
Copy link

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

@mokeyish
Copy link
Owner

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

@haiger01
Copy link
Author

haiger01 commented Jul 9, 2024

例如生成一个自定义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
Copy link
Owner

mokeyish commented Jul 12, 2024

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

mokeyish/hickory-dns@51b1213

@haiger01
Copy link
Author

非常感谢!

@haiger01
Copy link
Author

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

@mokeyish
Copy link
Owner

@haiger01
Copy link
Author

已测试,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants