Bonjour手把手搭建一:mDNS(apple & multicastdns.org)

Bonjour是Apple引入的mDNS(Multicast DNS)技术,允许本地网络中的设备通过名称而非IP地址互相连接。mDNS使用IP多播,以避免依赖传统的DNS服务器。在本地网络中,所有Bonjour名称以'.local.'结尾,便于区分全局DNS名称。mDNSResponder是Bonjour的一部分,负责服务的注册和查询。同时,mDNSResponder的源码可在多个平台上移植,实现跨平台的网络服务发现。
摘要由CSDN通过智能技术生成

mDNS(Multicast DNS)——From Apple

https://support.apple.com/kb/TA20999?locale=zh_CN&viewlocale=en_US

Multicast DNS, one of the features incorporated in Bonjour, which was introduced in Mac OS X 10.2.

Bonjour的一个新特性,在Mac OS X10.2后引入,以前叫作Rendezvous

Multicast DNS is one of the features of Bonjour (formerly "Rendezvous"), included in Mac OS X 10.2 or later. It allows you to connect via Internet protocol (IP) to other computers on a local network by name, rather than a numbered address.

允许通过IP协议,在同一网段,利用名字连接,而不是数字IP地址

On the Internet at large, a DNS name such as "www.apple.com" must be resolved to a numbered IP address before your computer can connect to the server. A domain name system (DNS) server normally provides this name resolution service for your computer. Your Internet service provider or network administrator normally provides a local DNS server for your use.

在global网络里,DNS server提供了地址解析服务。


Conversely, Multicast DNS allows computers on a local network, such as home or small office, to look up each others' names and addresses without a DNS server. Each computer knows its own name and responds to requests for that name automatically via IP multicast.
mDNS是相对于本地网络来说的,通过主机名字,利用IP多播,发送请求。


Anywhere that a you could normally use a DNS name such as "www.apple.com", you could instead enter the Bonjour name of the computer on the local network. To indicate that the name should be looked up using local multicast instead of a standard DNS query, all Bonjour host names end with the extension ".local." This helps avoid confusion between names that are local Bonjour computer names ("mycomputer.local") and globally unique DNS names ("www.apple.com").

为了避免冲突,本地bonjour用.local后缀,区分于www.xxx.com。

If you use local Bonjour computer names frequently and do not want to explicitly type ".local." every time, then this extension may be added to the Search Domains field in the Network preference pane. Click the TCP/IP tab in the Network preference pane to access the Search Domains field. Be sure you have selected the correct network port from the Show menu.

如果你要默认使用.local,在网络里面配置设置,并设置对端口。


For more information about Multicast DNS in general, see the Multicast DNS website (http://www.multicastdns.org/).

Note: If you have set up a private DNS server that resolves names in the .local domain, computers using Mac OS X 10.2 will not use the DNS server to resolve these names. This may result in unexpected failures to connect to hostnames defined by your server. You should use a different domain, such as .home, .office, or .lan for DNS on private networks.

注意,如果你之前配置过本地DNS server,请用与.local不同的后缀。

 

Multicast DNS——From multicastdns.org

Multicast DNS is a way of using familiar DNS programming interfaces, packet formats and operating semantics, in a small network where no conventional DNS server has been installed.

mDNS是一种在本地网络,没有DNS服务器的情况下,使用DNS编程接口,包格式,操作语义的一种方式。(Any i

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值