<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'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'd create a simple service manifest for the dnsmasq service. The manifest currently assumes that dnsmasq has been installed in '/usr/local/sbin/dnsmasq' and the configuration file in '/usr/local/etc/dnsmasq.conf', 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> # svccfg import dnsmasq.xml</div><div> # svcadm enable dnsmasq</div><div><br></div><div>To confirm that the service is enabled and online:</div><div><br></div><div> # svcs -l dnsmasq</div><div>
<br></div><div>Finally, here is the service manifest. I'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><?xml version='1.0'?></div><div><!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"></div><div><!-- Service manifest for dnsmasq --></div><div>
<br></div><div><service_bundle type='manifest' name='dnsmasq'></div><div> <service name='network/dnsmasq' type='service' version='1'></div><div><br></div><div> <create_default_instance enabled='false'/></div>
<div> <single_instance/></div><div><br></div><div> <dependency name='multi-user'</div><div> grouping='require_all'</div><div> restart_on='refresh'</div>
<div> type='service'></div><div> <service_fmri value='svc:/milestone/multi-user'/></div><div> </dependency></div><div><br></div><div> <dependency name='config'</div>
<div> grouping='require_all'</div><div> restart_on='restart'</div><div> type='path'></div><div> <service_fmri value='file:///usr/local/etc/dnsmasq.conf'/></div>
<div> </dependency></div><div><br></div><div> <dependent name='dnsmasq_multi-user-server'</div><div> grouping='optional_all'</div><div> restart_on='none'></div>
<div> <service_fmri value='svc:/milestone/multi-user-server' /></div><div> </dependent></div><div><br></div><div> <exec_method type='method' name='start'</div><div> exec='/usr/local/sbin/dnsmasq -C /usr/local/etc/dnsmasq.conf'</div>
<div> timeout_seconds='60' ></div><div> <method_context></div><div> <method_credential user='root' group='root' privileges='all'/></div><div> </method_context></div>
<div> </exec_method></div><div><br></div><div> <exec_method type='method'</div><div> name='stop'</div><div><div> exec=':kill'</div><div> timeout_seconds='60'/></div>
<div><br></div><div> <exec_method type='method'</div><div> name='refresh'</div><div> exec=':kill -HUP'</div><div> timeout_seconds='60' /></div>
<div><br></div><div> <template></div><div> <common_name></div><div> <loctext xml:lang='C'>dnsmasq server</loctext></div><div> </common_name></div><div> <description></div>
<div> <loctext xml:lang='C'></div><div>dnsmasq - A lightweight DHCP and caching DNS server.</div><div> </loctext></div><div> </description></div><div> <documentation></div>
<div> <manpage title='dnsmasq' section='8' manpath='/usr/local/man'/></div><div> </documentation></div><div> </template></div><div><br></div><div> </service></div>
<div></service_bundle></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> <br>
<br><div><br></div>