[rbldnsd] stand alone rbldnsd server, no bind

Scot W scot_a_w at yahoo.com
Mon Sep 13 20:34:02 MSD 2004


--- Michael Tokarev <mjt at tls.msk.ru> wrote:

> 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.
Originally I set her mail server to query spamhaus,
several of the sorbs lists and cbl.  This was catching
most, but several very abusive addresses (Ameritech to
name one) were not listed but sending a lot of viruses
and spam.  I thought rbldnsd would allow her to "fine
tune" what got stopped without having to pay for
Postini (as we use).
> 
> > 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" ? ;)
File is named "blocked.txt. Went with that naming
convention since the file rsynced from cbl is
list.txt.  Did not know what the last entry should be.
> 
> > 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?
Copied and pasted Lines 1-10:
: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

12.23.3.5-12.32.152.19

12.25.164.64-12.25.164.127

12.32.152.21-12.36.12.38

12.32.43.128-12.32.43.255

12.36.12.40-12.39.3.209

12.39.3.211-12.96.247.24

12.96.247.40-12.144.148.53
> 
> > 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?
Guess I don't know.  What does gedit put in?
> 
> > 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...
Actually I was just shooting in the dark trying
different combinations.  I thought one of the examples
I Googled showed that as an example.
> 
> > 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?
Indeed it is blocked.txt.  No need for .txt?
> 
> 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... ;)
Subject a little too abbreviated?  Guess I should have
said: Trying to run only rbldnsd on a machine.  Njabl
example includes bind which we are not running on this
machine.  Need help with commands to start rbldnsd. 
TIA
> 
> /mjt
> _______________________________________________
> rbldnsd mailing list
> rbldnsd at corpit.ru
> http://www.corpit.ru/mailman/listinfo/rbldnsd
> 



		
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool


More information about the rbldnsd mailing list