For Multicast DNS (mDNS) and DNS Service Discovery to function, mDNS must be deployed on all of the systems that will participate in mDNS. The mDNS service is used to advertise the availability of services that are provided on the system.
Prior to enabling mDNS, make sure that the software package is installed on your system. If necessary, install the package as follows:
$ pkg install pkg:/service/network/dns/mdns
Part of the process of enabling mDNS is to first update the name service switch information. To resolve local hosts, you must change the config/host property of the name-service/switch SMF service to include mdns as a source, as shown in the following 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
Enable the mDNS SMF service as follows:
$ svcadm enable svc:/network/dns/multicast:default
When you enable mDNS by using this method, your changes persist through upgrades and reboots. See the svcadm(8) man page.