<br><br><div><span class="gmail_quote">On 6/30/07, <b class="gmail_sendername">Simon Kelley</b> <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>> 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>> Gang,<br>><br>> Question: If I use the dnsmasq.conf file format to miss-address an<br>> ad server, etc,<br>> does this entry get placed in the hash table along with the entries from<br>
> the hosts file and<br>> therefore remain fast and efficient?<br><br>No, the search process for server=/<domain>/ and address=/<domain>/<br>lines in dnsmasq.conf is linear.<br><br> I'd like to move the entries for
<br>> sites I'm blocking<br>> from the hosts to /etc/dnsmasq.conf.more in the<br>> "address=/baddomain.com/127.0.0.1"<br>> format to take advantage of the wildcard feature, but I have many many<br>
> domains<br>> (I'm the guy that has 700k domains to block, remember?).<br>><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)? If so, a trie would probably be the most efficient lookup mechanism.<br> </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>> Jason<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>><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>