标准 DHCP LAN 中的本地 DNS
我们的客户是典型的宽带家庭用户,拥有提供 DHCP 的 DSL 调制解调器/路由器。 我们希望连接到家庭 LAN 并具有嵌入式 HTTP 服务器的设备可以通过域名(www.mydevice.ip 或其他名称)进行寻址。特别是,我们希望避免用户必须获取 IP 地址并将其输入到浏览器的地址栏中。
有哪些可用的解决方案?
典型的 DHCP 调制解调器是否包含 DNS - 如何使用它?
其他服务可以提供帮助吗(例如 Bonjour)?
Our customers are typical broadband home users, with a DSL Modem/Router which offers DHCP.
We want our device which is connected to the home LAN and has an embedded HTTP Server to be addressable with a domain name (www.mydevice.ip or something). In particular, we want to avoid that the user has to get the IP address and type it into the address bar of his browser.
What solutions are available?
Has the typical DHCP Modem a DNS included - how do you use it?
Could other services offer help (eg. Bonjour)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用“avahi”守护进程来使用 mDNS/DNS-SD——这应该适用于 mac + linux 主机,也许也适用于 Windows。
对于 Windows,您可以设置 SAMBA 来获取 WINS 名称解析。
You can use mDNS/DNS-SD using "avahi" daemon -- this should work on mac + linux hosts, and maybe for windows.
For Windows, you can set up SAMBA to get WINS name resolution.
“典型的 DHCP 调制解调器”不是标准,因此没有默认答案。
您想要的是调制解调器充当 DNS 缓存(这几乎是默认设置),并另外添加您自己的指向条目 IP 的静态 DNS 条目。
如何实现这一点取决于路由器......
A "typical DHCP Modem" is no standard so there is no default answer.
What you want, is that the modem works as a DNS cache (which is pretty much the default) and additionally add your own, static DNS entries that point to the IP of the entry.
How you achieve that depends on the router...