Multicast DNS uses a special domain called "local". Host names are automatically registered in this domain.
Você deve achar que ele já funciona se você tentar ssh ubuntu-desktop.local
no sistema Ubuntu, mas obviamente isso não será muito útil ...
The responder is implemented by Avahi service, which is already a part of all recent distributions.
The resolver is implemented as additional nsswitch module mdns, which unfortunately is not included in RHEL/CentOS.
However, mdns module can be installed from EPEL repository (so be sure to enable it first).
Next, install the necessary packages:
# yum -y install avahi nss-mdns
# systemctl start
avahi-serviceavahi-daemon# systemctl enable
avahi-serviceavahi-daemonNext, enable the mdns module in /etc/nsswitch.conf by modifying the hosts: line:
hosts: files mdns_minimal [NOTFOUND=return] dns mdns
If you're using IPv4 only, then use mdns4_minimal and mdns4 instead.