[rbldnsd] listing an ip as /32 and as /xx ?

Michael Tokarev mjt at corpit.ru
Tue Jan 8 13:38:55 MSK 2008


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.

/mjt


More information about the rbldnsd mailing list