[rbldnsd] multiple TXT element answers?

Kai Schlichting kai-rbldnsd-list at spamshield.org
Wed May 17 06:05:38 MSD 2006


Greetings everyone - I recently joined the list.

Question: I am trying to run a mirror of the asn.routeviews.org zone, which
provides BGP ASN origin and prefix for a given IP number, including wildcards,
e.g.:

$ dig  1.55.5.12.asn.routeviews.org txt
[...]
;; ANSWER SECTION:
1.55.5.12.asn.routeviews.org. 84426 IN  TXT     "12163" "12.5.48.0" "21"
1.55.5.12.asn.routeviews.org. 84426 IN  TXT     "12163" "12.5.54.0" "23"

(the zone returns all hits, not just "patricia trie"-like longest prefix match)

E.g.: the equivalent data of:
$ ip-leecher.pl  12.5.55.1
# Randomly selected router routeserver.sunrise.ch
12.5.55.1 announced via route 12.5.54.0/23 from AS 12163


The zones they provide are in BIND format - running up to a stunning +800MB
of memory bloat. The above zone is at
ftp://archive.routeviews.org/dnszones/originas.zone.bz2

relevant entries for the example above:

55.5.12         IN TXT  "12163" "12.5.48.0" "21"
*.55.5.12       IN TXT  "12163" "12.5.48.0" "21"
55.5.12          IN TXT  "12163" "12.5.54.0" "23"
*.55.5.12       IN TXT  "12163" "12.5.54.0" "23"

My attempts to replicate this return of multiple TXT elements in quotes with rbldnsd have
failed so far.

rbldnsd version 0.996 (19 Feb 2006)

I've tried an ordinary ip4set datatype (requiring a rewrite of the above data's left side),
as well as a dnset datatype where one can more or less take the above data into the zone
directly.

Problem: no matter how I try to define the TXT record, the result is always an entire quoted
         string, quotation-marks are escaped with backslashes:

Query for all of the below: `dig @67.18.254.3 55.5.12.asn.asnbl.org txt`

entry:
..55.5.12 12163 12.5.48.0 21
result:
55.5.12.asn.asnbl.org.  60      IN      TXT     "12163 12.5.48.0 21"

entry:
..55.5.12 "12163" "12.5.48.0" "21"
result:
55.5.12.asn.asnbl.org.  60      IN      TXT     "\"12163\" \"12.5.48.0\" \"21\""

Is there a way to get what I need in order to be a mirror for this zone?

Thanks,
bye,Kai




More information about the rbldnsd mailing list