<br><br><div><span class="gmail_quote">On 6/30/07, <b class="gmail_sendername">Simon Kelley</b> &lt;<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jason wrote:<br>&gt; Gang,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Question:&nbsp;&nbsp;If I use the dnsmasq.conf file format to miss-address an<br>&gt; ad server, etc,<br>&gt; does this entry get placed in the hash table along with the entries from<br>
&gt; the hosts file and<br>&gt; therefore remain fast and efficient?<br><br>No, the search process for server=/&lt;domain&gt;/ and address=/&lt;domain&gt;/<br>lines in dnsmasq.conf is linear.<br><br>&nbsp;&nbsp;I&#39;d like to move the entries for
<br>&gt; sites I&#39;m blocking<br>&gt; from the hosts to /etc/dnsmasq.conf.more in the<br>&gt; &quot;address=/baddomain.com/127.0.0.1&quot;<br>&gt; format to take advantage of the wildcard feature, but I have many many<br>
&gt; domains<br>&gt; (I&#39;m the guy that has 700k domains to block, remember?).<br>&gt;<br><br>Performance wins or losses will depend on how many individual names are<br>replaced by one wildcard, I guess.</blockquote><div>
<br><br>Are wildcards restricted to an entire token (delimited by dots)?&nbsp; If so, a trie would probably be the most efficient lookup mechanism.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Cheers,<br><br>Simon.<br><br>&gt; Jason<br>&gt;<br>&gt; _______________________________________________<br>&gt; Dnsmasq-discuss mailing list<br>&gt; <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk
</a><br>&gt; <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>&gt;<br><br><br>_______________________________________________
<br>Dnsmasq-discuss mailing list<br><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
</a><br></blockquote></div><br>