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