[Dnsmasq-discuss] Dnsmasq with Gigantic hosts file
Preston Crow
pc-dnsmasq at crowcastle.net
Mon Jan 23 02:02:54 GMT 2012
That works perfectly for me. Putting a lookup as a command on the same
line following the restart sees the results.
/etc/init.d/dnsmasq restart ; host google.com
No visible delay at all.
Thanks for the help on this!
On 01/22/12 08:06, Jan Seiffert wrote:
> 2012/1/22 Jan Seiffert<kaffeemonster at googlemail.com>:
>> 2012/1/22 Preston Crow<pc-dnsmasq at crowcastle.net>:
>>>> http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2007q1/001120.html
>>> I built with that patch (updating to compile with 2.59),
>>
>> Thanks
>>
>>> and it made no difference. I've attached it. Perhaps it's something simple.
>>
>> It can't work, since the slow check, the one you commented out in your
>> second patch, is an open coded search over the hash chains, it does
>> not go by any function which would use the tree.
>>
>> But looking at it again: this needs generally more work.
>> There has to be some tuning done where to hook in the cache code. And
>> the cache code is complicated...
>>
>
> Ok, i looked at it, here is a new version.
> It should now use the reverse tree on hosts insert and generally fixes
> some errors in the code.
> Just for fun and reference, only compile tested.
> Why it does not work without the reverse tree enables, i can't see it.
>
> Anyway, Simon was faster. Master of the hash tables ;)
>
> Greetings
> Jan
>
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list