<span style="border-collapse:collapse">Somehow gmail did not send this right so I am forwarding the original with attachment inline...</span><br clear="all"><br><span class="Apple-style-span" style="border-collapse: collapse; ">I&#39;ve found dnsmasq much easier to set up on my home server running Solaris 10 than the stock dhcp/dns server, which is probably overkill anyway for my simple home network needs. Since Solaris now uses SMF (Service Management Facility) to manage services I thought I&#39;d create a simple service manifest for the dnsmasq service. The manifest currently assumes that dnsmasq has been installed in &#39;/usr/local/sbin/dnsmasq&#39; and the configuration file in &#39;/usr/local/etc/dnsmasq.conf&#39;, so you may have to adjust these paths for your local installation. Here are the steps I followed to install and enable the dnsmasq service:<div>
<div><br></div><div><div>&nbsp;&nbsp;# svccfg import dnsmasq.xml</div><div>&nbsp;&nbsp;# svcadm enable dnsmasq</div><div><br></div><div>To confirm that the service is enabled and online:</div><div><br></div><div>&nbsp;&nbsp;# svcs -l dnsmasq</div><div>
<br></div><div>Finally, here is the service manifest. I&#39;ve just started learning about SMF so if anyone has any corrections/feedback they are more than welcome:</div><div><br></div><div>=================</div><div><br>
</div><div><div>&lt;?xml version=&#39;1.0&#39;?&gt;</div><div>&lt;!DOCTYPE service_bundle SYSTEM &quot;/usr/share/lib/xml/dtd/service_bundle.dtd.1&quot;&gt;</div><div>&lt;!-- Service manifest for dnsmasq --&gt;</div><div>
<br></div><div>&lt;service_bundle type=&#39;manifest&#39; name=&#39;dnsmasq&#39;&gt;</div><div>&nbsp;&nbsp;&lt;service name=&#39;network/dnsmasq&#39; type=&#39;service&#39; version=&#39;1&#39;&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;create_default_instance enabled=&#39;false&#39;/&gt;</div>
<div>&nbsp;&nbsp; &nbsp;&lt;single_instance/&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;dependency name=&#39;multi-user&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;grouping=&#39;require_all&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;restart_on=&#39;refresh&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type=&#39;service&#39;&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;service_fmri value=&#39;svc:/milestone/multi-user&#39;/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/dependency&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;dependency name=&#39;config&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;grouping=&#39;require_all&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;restart_on=&#39;restart&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type=&#39;path&#39;&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;service_fmri value=&#39;file:///usr/local/etc/dnsmasq.conf&#39;/&gt;</div>
<div>&nbsp;&nbsp; &nbsp;&lt;/dependency&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;dependent name=&#39;dnsmasq_multi-user-server&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; grouping=&#39;optional_all&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; restart_on=&#39;none&#39;&gt;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;service_fmri value=&#39;svc:/milestone/multi-user-server&#39; /&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/dependent&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;exec_method type=&#39;method&#39; name=&#39;start&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec=&#39;/usr/local/sbin/dnsmasq -C /usr/local/etc/dnsmasq.conf&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout_seconds=&#39;60&#39; &gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;method_context&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;method_credential user=&#39;root&#39; group=&#39;root&#39; privileges=&#39;all&#39;/&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;/method_context&gt;</div>
<div>&nbsp;&nbsp; &nbsp;&lt;/exec_method&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;exec_method type=&#39;method&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&#39;stop&#39;</div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec=&#39;:kill&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout_seconds=&#39;60&#39;/&gt;</div>
<div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;exec_method type=&#39;method&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&#39;refresh&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec=&#39;:kill -HUP&#39;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout_seconds=&#39;60&#39; /&gt;</div>
<div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;template&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;common_name&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;loctext xml:lang=&#39;C&#39;&gt;dnsmasq server&lt;/loctext&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;/common_name&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;description&gt;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;loctext xml:lang=&#39;C&#39;&gt;</div><div>dnsmasq - A lightweight DHCP and caching DNS server.</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/loctext&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;/description&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;documentation&gt;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;manpage title=&#39;dnsmasq&#39; section=&#39;8&#39; manpath=&#39;/usr/local/man&#39;/&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;/documentation&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/template&gt;</div><div><br></div><div>&nbsp;&nbsp;&lt;/service&gt;</div>
<div>&lt;/service_bundle&gt;</div><div><br></div><div>==================</div></div></div><div><br></div><div>Thanks,</div></div></div></span><span class="Apple-style-span" style="border-collapse: collapse; ">David</span>&nbsp;<br>
<br><div><br></div>