Configuring mDNS for Solaris

Posted on July 14, 2016
mDNS works in Solaris 11

Configuring mDNS for Solaris is pretty straight forward and well documented, unlike the procedure for OpenIndiana. I’m running Solaris 11.3, and as always assuming a fresh install:

  1. Install the mdns package. $ sudo pkg install pkg:/service/network/dns/mdns

  2. Configure NSS ``` $ /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 ```

  3. Enable and start the mDNS service $ svcadm enable svc:/network/dns/multicast:default

  4. And finally, let’s test it out. ``` $ getent hosts ticonderoga.local 10.0.40.101 ticonderoga.local.

    $ ping ticonderoga.local ticonderoga.local is alive ```

That’s it.