无需 DNS 的通用本地网络名称解析方法?
我正在为启用 DHCP 的网络设备编写 TCP/IP 代码。该设备是否有一种通用的方式可以在野外宣布其主机名,几乎所有网络浏览器(在 osx/linux/win 上)都可以通过名称访问它? (例如 http://mydevice/index.htm)
允许最终用户使用其“库存”的解决方案“没有严格要求的计算机,例如安装 Windows 版 bonjour 等软件包,网络上有 dns 服务器等。zeroconf
/dns-sd 不适用于未安装 bonjour(或类似)服务且 LLMNR 的 Windows 计算机不适用于开箱即用的 osx 机器。
如果没有单一的方法可以做到这一点,那么遵守 dns-sd 和 LLMNR 是否可以覆盖大部分已安装的操作系统基础?
I'm writing TCP/IP code for a DHCP enabled network device. Is there a universal way this device can announce its hostname in-the-wild that pretty much all web browsers (on osx/linux/win) can access it by name? (e.g. http://mydevice/index.htm)
A solution that allows the end-user to use their "stock" computer without stringent requirements like installing packages such as bonjour for windows, have a dns server on their network, etc.
zeroconf/dns-sd doesn't work on windows machines that don't have bonjour (or similar) service installed and LLMNR doesn't work on osx machines out of the box.
If there is no single way of doing this, would conforming to both dns-sd and LLMNR cover most of the installed OS base out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,为了覆盖无 dns 网络中的主机名解析,需要 ZeroConf/mDns/Dns-Sd 和 NetBios (NetBt) 来覆盖基于 Windows 和基于 Osx 的系统(大多数 Linux 系统也支持 ZeroConf) 。
NetBt 不支持 IpV6,Vista 及以后的 Microsoft 开发的操作系统支持 LLMNR。因此,“通用”名称解析方法可能必须实现所有这三个方法。
From what I can gather, in order to cover hostname resolution in a dns-less network, ZeroConf/mDns/Dns-Sd and NetBios (NetBt) are required to cover windows based, and Osx based system (most linux systems also suppor ZeroConf).
NetBt doesn't support IpV6, and LLMNR is supported by Vista and onwards Microsoft developed operating systems. So a "universal" name resolution method might have to implement all three.