Go to main content

Working With Oracle® Solaris 11.3 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: October 2017

How to Enable mDNS and DNS Service Discovery

  1. Become an administrator.

    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.3.

  2. Check whether the mDNS package has been installed.
    # pkginfo -l SUNWdsdu
  3. If the mDNS package has not been installed, install it.
    # pkg install pkg:/service/network/dns/mdns
  4. Update name service switch information by changing 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:default
    svc:/system/name-service/switch:default> setprop config/host = astring: "files dns mdns"
    svc:/system/name-service/switch:default> refresh
    svc:/system/name-service/switch:default> quit
  5. Enable the mDNS service.
    # 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(1M) man page.

  6. (Optional) Check the mDNS error log, /var/svc/log/network-dns-multicast:default.log, for errors or messages.