[rbldnsd] stand alone rbldnsd server, no bind
Michael Tokarev
mjt at tls.msk.ru
Mon Sep 13 18:53:19 MSD 2004
Scot W wrote:
> I was certain that with a little messing around I
> could make this work. However I must cry "uncle" and
> ask for a little guidance.
>
> A friend of mine was complaining that her non-profit
> was beseiged with SPAM but the board couldn't justify
> spending $$ on computers. I had often read about
> rbldnsd and thought I could put together a box for her
> from retired equipment here.
First of all, why do you think you (her?) need a box,
or even rbldnsd? If you're using CBL (as you mentioned
below), or DSBL, or whatever, it should be ok to use any
similar blocklist as described, by performing direct
queries to official nameservers, without setting up
your own "caching" rbldnsd.
> I have a stand alone P400 256Mb box with Red Hat 9.
> Downloaded the RPM for .993 and installed fine.
> Rsynced a file from CBL as an example and thought I
> was good to go. I was wrong.
>
> Did a little Googling and found some helpful
> directions at njabl.org and surbl.org that I thought
> would solve my problems, again, no joy.
>
> Following is my config, would appreciate someone
> showing me the error of my ways.
>
> Edited /etc/sysconfig/rbldnds to show:
> RBLDNSD="rbldnsd -r/usr/local/etc/rbldnsd -t21600 -c60
> \
> -b127.0.0.1/53 \
> maps.nonprofit.local:ip4set:blocked"
>
>
> File in /usr/local/etc/rbldnsd is named blocked.txt
"blocked" or "blocked.txt" ? ;)
> and contains (a sample of the lines):
> :127.0.0.2:BLOCKED for E-Mail abuse. See Open RBL or
> SenderBase to see what RBLs have your IP listed.
>
> #$TTL 3600
>
> 12.0.0.0-12.23.3.3 (first line of file)
> 127.0.0.2 (last line of file)
>
> Right now I just want rbldnsd to run so I am manually
> issuing the command to start rbldnsd. I have tried a
> couple of commands (following) but both return errors.
>
> [root at localhost root]# rbldnsd
> -r/usr/local/etc/rbldnsd -t21600 -c60 -b127.0.0.1/53
> 127.0.0.1:ip4set:blocked.txt
> rbldnsd: listening on 127.0.0.1/53
> rbldnsd: file blocked.txt(2): invalid or unrecognized special entry
Hmm. what's the *exact* content of line #2?
> rbldnsd: file blocked.txt(3): invalid address
> rbldnsd: file blocked.txt(4): invalid address
> rbldnsd: file blocked.txt(5): invalid address
> rbldnsd: file blocked.txt(6): invalid address
> rbldnsd: ip4set:blocked.txt: 188 more warnings suppressed
wow.
> rbldnsd: ip4set:blocked.txt: 20040908 055859: e32/24/16/8=0/0/0/0
And it loaded no entries at all. Hmm... let me guess...
How about line endings? Are lines ending with bare
linefeed as usual on unix, or with <cr><lf> as on DOS?
> SECOND EXAMPLE
>
> [root at localhost root]# rbldnsd
> -r/usr/local/etc/rbldnsd -t21600 -c60 -b127.0.0.1/53 127.0.0.1:ip4set:blocked
What's that 127.0.0.1:... supposed to mean? In previous example,
you used a zone name here, as it should be. I don't think
127.0.0.1 is a good zone name...
> rbldnsd: listening on 127.0.0.1/53
> rbldnsd: unable to stat file `blocked': No such file or directory
So it can't find the file named `blocked' in directory
/usr/local/etc/rbldnsd . Where it is? Maybe it's called
"blocked.txt" instead?
And finally, what does your subject mean? I thought you're trying
to run rbldnsd without bind on a machine and are having some probs
with recursive resolving... ;)
/mjt
More information about the rbldnsd
mailing list