带有 Avahi 的 MDNS 子域

发布于 2024-07-29 08:58:17 字数 314 浏览 3 评论 0原文

我有一台在 Ubuntu Jaunty 上运行 avahi-daemon 的机器。 它当前正在响应 hostname.local 上的自身请求,但我希望它运行一个 Web 应用程序,最终为不在本地网络上的其他主机发布 MDNS 地址。 如果可能的话,我希望它们位于 .local 的子域中。

现在,如果我编辑 /etc/avahi/hosts 文件并输入地址 -> 主机映射,仅在没有子域组件的情况下才有效。 换句话说,FQDN foo.bar.local 不会从其他主机解析,但 bar.local 会。 这是 MDNS 客户端或服务器的限制吗? 它可以修复吗?

I have a machine running avahi-daemon on Ubuntu Jaunty. It's currently responding to requests for itself on hostname.local, but I would like it to run a webapp that ends up publishing MDNS addresses for other hosts which aren't on the local network. I would like for these to be in a subdomain of .local, if possible.

Right now, if I edit the /etc/avahi/hosts file and put in an address -> host mapping, it only works if there's no subdomain component. In other words, the FQDN foo.bar.local won't resolve from other hosts, but bar.local will. Is this a limitation of the MDNS clients, or the server? And can it be fixed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

优雅的叶子 2024-08-05 08:58:17

这是 Avahi 守护程序的静态主机功能的限制。 您需要使用另一种支持注册多个标签的方法,例如此Python脚本

That's a limitation of Avahi daemon's static host functionality. You need to use another method that supports registering more than a single label such as this Python script.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文