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.4.
# pkg info pkg:/service/network/dns/mdns
$ pkg install pkg:/service/network/dns/mdns
# /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 by using the svcadm enable command ensures that your changes persist through upgrades and reboots. For more information, see the svcadm(8) man page.