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

Exit Print View

Updated: July 2014
 
 

How to Enable mDNS and DNS Service Discovery

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.

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

  2. If needed, install the mDNS package.
    # pkg install pkg:/service/network/dns/mdns
  3. Update name service switch information.

    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
  4. Enable the mDNS service.
    # 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.

  5. (Optional)If needed, check the mDNS error log.

    Check the mDNS service log, /var/svc/log/network-dns-multicast:default.log, for errors or messages.