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

server-name 异常 #1670

Open
ziojacky opened this issue Feb 13, 2024 · 3 comments
Open

server-name 异常 #1670

ziojacky opened this issue Feb 13, 2024 · 3 comments

Comments

@ziojacky
Copy link

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

@PikuZheng
Copy link
Contributor

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

@ziojacky
Copy link
Author

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

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

@PikuZheng
Copy link
Contributor

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

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