[Dnsmasq-discuss] Many immortals slow down dnsmasq. Bug or expected ?

Simon Kelley simon at thekelleys.org.uk
Mon Oct 5 21:25:58 BST 2015


On 05/10/15 15:35, wkitty42 at gmail.com wrote:
> On 10/03/2015 06:37 PM, Simon Kelley wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> address=/abcd/0.0.0.0/ does NOT use the cache code. There's an implied
>> wildcard in the domain name, it matches *.abcd. The matching for this
>> is a relatively slow, linear, search. It is certainly not suitable for
>> 250000 names!
>>
>> If you don't need the wildcard matching, then using
>>
>> host-record=abcd,0.0.0.0
>>
>> instead will make real cache entries, which are efficently searched.
>> That will be much, much faster.
> 
> what does one do if they do need wildcard matching?
> 

Making the wildcard matching more efficient is on the TODO list. There
was a series of patches to do it posted here some time ago. They weren't
applied because I wanted to take the opportunity to do a larger tidy of
some very old, knarly code. I plan to do that over the coming  Northern
Hemisphere winter.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list