重定向“.local” 子域到单播 DNS
我经常访问已设置为使用 .local
顶级名称下的域的 Windows 域。 这与 Bonjour/Zeroconf 冲突,后者保留 .local
供自己使用。 许多平台都支持开箱即用的 Bonjour(包括 Mac OS、iPhone 和 Ubuntu),并且当发生这种冲突时会出现许多名称解析问题。
我通过按照 解析器(5)
效果很好。 不幸的是,这需要在每个工作站上进行手动更改,并且不适用于 iPhone。
我正在寻找一种方法,将通过 mDNS 传入的 *.ntdomain.local
请求重定向到特定的单播 DNS 服务器。 如果需要的话,我不介意编写一些代码。 我可以在 Debian 或 Windows 2003 上部署。看起来 Avahi 可能是我正在寻找的库。
是否可以在不注册子域中的每个地址的情况下完成此操作,或者是否可以注册指向 Windows DNS 服务器的 ntdomain.local
的单个 NS 记录?
I regularly access Windows domains that have been set up to use a domain under the .local
top level name. This conflicts with Bonjour/Zeroconf which reserves .local
for it's own use. A number of platforms support Bonjour out of the box (including Mac OS, iPhone, and Ubuntu) and there's numerous name resolution issues when this confict occurs.
I have a manual (per workstation) workaround in place for Mac OS by creating an /etc/resolver/ntdomain.local
as per resolver(5)
which works well. Unfortunately this requires manual changes on every workstation and does not work on the iPhone.
What I'm looking for is a way to redirect requests for *.ntdomain.local
coming in via mDNS to a specific unicast DNS server. I don't mind writing some code if required. I can deploy on either preferably Debian or alternatively Windows 2003. It looks like Avahi may be the library I'm looking for.
Can this be done without registering every address in the subdomain or is it possible to register a single NS record of ntdomain.local
that points to the Windows DNS server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以“合并”单播和多播
.local
命名空间(单播优先),如 Avahi 和 Unicast .local。 Apple 有说明在 Mac OS X 上执行相同的操作。另一种选择是将
domain-name=.localnet
添加到/etc/avahi/avahi-daemon.conf
以使其使用.localnet
多播 DNS 命名空间的.local
。You can "merge" the unicast and multicast
.local
namespaces (with unicast taking precedence) as explained on Avahi and Unicast .local. Apple has instructions for doing the same on Mac OS X.Another option is to add
domain-name=.localnet
to/etc/avahi/avahi-daemon.conf
to have it use.localnet
instead of.local
for the multicast DNS namespace.