This step is not necessary, but it seems like a good idea if you have Mac computers.
Create the XML files that tell MDNS what to advertise. (Found this information from here, here, and here.
Create /etc/avahi/services/smb.service with the following content:
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_device-info._tcp</type>
<port>548</port>
<txt-record>model=RackMac</txt-record>
</service>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
The service that contains <txt-record>model=RackMac</txt-record> is only there so that on Mac computers the NAS shows up as an XServe server.
Enable mdns and the avahi-bridge-dsd service:
svcadm enable dns/multicast
svcadm enable avahi-bridge-dsd
I had to reboot the NAS after doing this before MDNS started working and properly advertising.
This is how the NAS appears on the Macs:
![]()
Edit (08/16/2011): Changed SMB port from 139 to 445 in the xml file example to make this work with Mac OS X Lion. Thanks to this post on lime-technology.

[...] email alerting of zpool problems and weekly zpool scrub Using MDNS to advertise OpenSolaris NAS to Mac computers This entry was posted on Sunday, August 30th, 2009 at 6:42 pmand is filed under Open Source, [...]
[...] to customize the icon used on Mac OS for a UPNP-advertised device, please read the earlier post: Using MDNS to advertise OpenSolaris NAS to Mac computers This entry was posted on Wednesday, September 9th, 2009 at 10:50 pmand is filed under Mac, [...]
[...] Using MDNS to advertise OpenSolaris NAS to Mac computers | Morph3ous’s Weblog (tags: opensolaris mdns) 20:03 delicious [...]
[...] Using MDNS to advertise OpenSolaris NAS to Mac computers | Morph3ous’s Weblog (tags: opensolaris mdns) [...]