[rbldnsd] Multiple Answers only sometimes
Manfred Hielder
manfred.hielder at googlemail.com
Sun Nov 18 22:05:32 MSK 2007
> Wtf are all those http links?? You'd better get a more descent
> mail client... ;)
>
> By the way, please refrain posting in HTML -- at least
> when it's definitely not necessary.
>
Sorry for that. I saw it just after send this mail.
> .. Internally, ip4set composed of 4 arrays. Each range with
> size /32../25 is added to first array. Each range with
> size /24../17 - to second. /16../9 - to 3rd, and /8../1
> to 4th. This is in more-or-less natural granularity, because
> in DNS IP addresses and ranges are separated by octets
> (4 for an address). Rbldnsd searches all the arrays and
> stops on first match - usually it's appropriate because
> only most specific entry is the most interesting one.
> ...
tnx for this knowledge.
> For things like in your case, more natural representation
> is ip4trie - because all entries are CIDRs without fancy
> ranges, and there aren't that many of them. For ip4trie,
> rbldnsd will ONLY return the most specific entry -- always.
OK
> ..If that's not what's needed, i.e, you really want ALL entries
> to be returned instead of only the most specific one, --
> with current code it's not possible, but it's trivial to
> implement in rbldnsd_ip4trie.c - about 5 lines of code,
> in ds_ip4trie_query() routine. The only problem with that
> is how to control whenever one wants most specific or all
> entries to be returned.
For this task i would need every matching line. It would be great if
you could provide the "about 5 lines of code" ;-)
The other task will run the standard version.
The decision whats needed could be done by 2 daemons running on two ports ;-)
Best Manfred
More information about the rbldnsd
mailing list