[rbldnsd] listing an ip as /32 and as /xx ?
Per Jessen
per at computer.org
Tue Jan 8 18:14:36 MSK 2008
Michael Tokarev wrote:
> Per Jessen wrote:
>> All,
>>
>> how do I best do this - in an rbldnsd zone file I wish to list an
>> IP-address/32 to return 127.0.0.2, as well as IP-address/29 returning
>> 127.0.0.3. If I just list both like that:
>>
>> :127.0.0.2
>> <ipaddr>
>> :127.0.0.3
>> <ipaddr>/29
>>
>> a lookup will return both - which I understand. What I'd like is to
>> have the "closest" result, 127.0.0.2.
>
> Try ip4trie instead of ip4set. And watch for memory usage - for a
> large number of small ranges (including /32) it may require more
> memory.
Thanks Michael - I had even looked at that (probably without really
understanding how it works). Got it all set up now - works fine. I
don't expect a lot of entries, no more than a few thousand at most.
/Per Jessen, Zürich
More information about the rbldnsd
mailing list