[rbldnsd] almost got it running but missing a few important lines
somewhere
Sebastiaan Tigchelaar
sebastiaan.tigchelaar at src.nl
Wed Sep 21 12:51:38 MSD 2005
I found this program via
http://www.hansenonline.net/Networking/bind-spam.html after a google.
I have mandrake 9 with qmail, rblsmptd and BIND 8 running.
I used the rpm to install but after the standard tweaking I found that the
program isn't querying itself but other DNS servers.
I read in part posts that you have to include an NS record in your
zonefiles, but as the noob that I am on this (I didn't even install the
machine but I have to take care of it after the person who did left us) I
have no idea how to state that.
I think I have to include it in every IP list/zone that I want to use all I
need now is the proper format.
Thank you for your time.
Sebastiaan
Linux no-bee
DIG results:
[root at w3 /]# dig 25.202.13.60.clients.blocked.rbl -t txt
; <<>> DiG 9.2.2 <<>> 25.202.13.60.clients.blocked.rbl -t txt
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 57667
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;25.202.13.60.clients.blocked.rbl. IN TXT
;; AUTHORITY SECTION:
.. 10800 IN SOA a.public-root.net.
hostmaster.public-root.net. 2005092106 43200 3600 1209600 14400
;; Query time: 27 msec
;; SERVER: 10.2.1.2#53(10.2.1.2)
;; WHEN: Wed Sep 21 10:48:10 2005
;; MSG SIZE rcvd: 113
from /var/lib/rbldns/china, zonefile for china
:127.0.0.2:DNSBL. $ originates from an area from which we do not accept
mail.
59.32
59.33
59.34
59.35
(many more follow)
60.13.200
60.13.201
60.13.202
60.13.203
60.13.204
60.13.205
from /etc/sysconfig/rbldnsd
RBLDNSD="dsbl -r/var/lib/rbldns/ -b 127.0.0.1/530 \
clients.blocked.rbl:ip4set:clients,china \
hosts.blocked.rbl:dnset:hosts
"
from /etc/named.conf
options {
directory "/etc/named.hosts";
pid-file "/var/run/named/named.pid";
dump-file "/var/log/named/db.dump";
statistics-file "/var/log/named/stats.log";
transfers-in 9999;
transfer-format many-answers;
recursion yes;
forward first;
forwarders {
195.241.49.33;
195.241.48.33;
10.2.1.2;
};
multiple-cnames yes;
};
zone "." {
type hint;
file "/etc/named.hosts/db.cache";
};
zone "hosts.blocked.rbl" IN {
type forward;
forward first;
forwards {127.0.0.1 port 530;
};
};
zone "clients.blocked.rbl" IN {
type forward;
forward first;
forwarders {127.0.0.1 port 530;
};
};
zone "e-commerce.src" {
type slave;
file "/etc/named.hosts/e-commerce.src.hosts";
masters {
10.2.1.2;
};
allow-transfer {
10.2.1.2;
};
};
zone "e-commerce.src.nl" {
type slave;
file "/etc/named.hosts/e-commerce.src.nl.hosts";
masters {
10.2.1.2;
};
allow-transfer {
10.2.1.2;
};
};
zone "1.2.10.in-addr.arpa" {
type slave;
file "/etc/named.hosts/1.2.10.in-addr.arpa.hosts";
masters {
10.2.1.2;
};
allow-transfer {
10.2.1.2;
};
};
zone "50.2.10.in-addr.arpa" {
type slave;
file "/etc/named.hosts/50.2.10.in-addr.arpa.hosts";
masters {
10.2.1.2;
};
allow-transfer {
10.2.1.2;
};
};
More information about the rbldnsd
mailing list