dnsmasq can read from &#x2F;etc&#x2F;hosts so you can automate it just using `curl` (or other standard UNIX tools):<p><pre><code>   # the first command is a one time only job
   cp -vip &#x2F;etc&#x2F;hosts &#x2F;etc&#x2F;hosts.default

   # the following is the automation.
   curl http:&#x2F;&#x2F;someonewhocares.org&#x2F;hosts&#x2F;hosts --silent &gt; &#x2F;etc&#x2F;hosts.sowc
   cat &#x2F;etc&#x2F;hosts.default &#x2F;etc&#x2F;hosts.sowc &gt;&gt; &#x2F;etc&#x2F;hosts

</code></pre>
The other benefit of this is you can then just do a `dnsmasq reload` (since the hosts file is an external configuration file) rather than the full `dnsmasq restart` that dnsgate performs.