For mDNS and DNS Service Discovery to function, mDNS must be deployed on all systems that are to participate in mDNS. The mDNS service is used to advertise the availability of services provided on the system.
For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# pkg install pkg:/service/network/dns/mdns
To be able to resolve local hosts, change the config/host property of the name-service/switch service to include mdns as a source. For example:
# /usr/sbin/svccfg -s svc:/system/name-service/switch svc:/system/name-service/switch> setprop config/host = astring: "files dns mdns" svc:/system/name-service/switch> select system/name-service/switch:default svc:/system/name-service/switch:default> refresh svc:/system/name-service/switch> quit
# svcadm enable svc:/network/dns/multicast:default
Enabling mDNS in this way ensures that your changes persist through upgrades and reboots. For more information, see the svcadm(1M) man page.
Check the mDNS service log, /var/svc/log/network-dns-multicast:default.log, for errors or messages.