[rbldnsd] "base template" documentation
Oli Schacher
rbldnsd at lists.wgwh.ch
Thu Nov 15 14:03:30 MSK 2012
Hi list
I'm playing with rbldnsd and having troubles understanding a
part of the man page section "Resulting A values and TXT templates":
[snip]
If the "base template" ($= variable) is defined, this template
is used for expansion, instead of the one specified for an entry being
queried. Inside the base tem‐ plate, $= construct is substituted with
the text given for individual entries. In order to stop usage of base
template $= for a single record, start it with = (which will be
omitted from the resulting TXT value). For example,
$0 See http://www.example.com/bl?$= ($) for details
127.0.0.2 r123
127.0.0.3
127.0.0.4 =See other blocklists for details about $
produces the following TXT records:
See http://www.example.com/bl?r123 (127.0.0.2) for details
See http://www.example.com/bl?127.0.0.3 (127.0.0.3) for details
See other blocklists for details about 127.0.0.4
[/snip]
With the example above, I didn't manage to get the results as
described. A TXT query for 127.0.0.2 returns just 'r123'. Shouldn't
that base template line start with $= instead of $0, or what is $0 in
this context exactly?
Why does the 127.0.0.3 example return the IP twice? From the
description I would have assumed that this returns "See
http://www.example.com/bl? (127.0.0.3) for details"
Is there a implicit "if there is no individual TXT, $= will be replaced
with the IP" ? Further up it says "There is no default TXT value, so
rbldnsd will not return anything for TXT queries it TXT isn't
specified." (the "it" should probably be "if"), so I thought $= would
just be replaced with the empty string if I don't set any TXT value.
I'm probably missing something, but what? :-)
Thanks
Oli
--
message transmitted on 100% recycled electrons
More information about the rbldnsd
mailing list