What about making your local nameserver authoritative for the rbl domain
you're using, and replacing your nameserver with 127.0.0.1 in resolv.conf? I
use my own nameservers on every connection I use, including my dsl at home.
That way, I maintain complete control over what I'm looking up, I can clear
the cache when I want to instead of waiting for an outdated RR to expire,
etc.

I'm sure there's a way you could do it - maybe I'll play with it tonight.
I've been dealing with dns servers for a few years, but don't have much
experience with the blacklist variety. Which blacklist are you using?

St-


| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of Ken
| Causey
| Sent: Tuesday, October 29, 2002 1:52 PM
| To: Steve Thomas
| Cc: SA Talk
| Subject: RE: [SAtalk] *whine* Local RBL checks not supported.
|
|
| On Tue, 2002-10-29 at 15:30, Steve Thomas wrote:
| > | do_rbl_lookup) which contacts the $rbl_domain directly.  This would
| > | allow me to do such things as defining the $rbl_domain as an alias for
| > | 127.0.0.1 in /etc/hosts and keeping the request completely local as
| > | needed.
| >
| > I'm not sure why you couldn't use "localhost" as the rbl server. In your
| > previous example I saw "local" as the rbl server. Unless you've
| got "local"
| > in your /etc/hosts file, it's not going to resolve. "localhost"
| *should* be
| > in /etc/hosts, and would resolve if it is.
| >
|
| The problem is that it looks up not localhost but d.c.b.a.localhost
| which (unless I enter each manually in /etc/hosts) uses the resolver
| mechanism, reads by /etc/resolv.conf and asks my DNS server (configured
| in /etc/resolv.conf) for the answer, who of course doesn't have a clue.
|
| mail:~# dig 20.236.158.12.localhost. txt
|
| ; <<>> DiG 9.2.1 <<>> 20.236.158.12.localhost. txt
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55075
| ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
|
| ;; QUESTION SECTION:
| ;20.236.158.12.localhost.     IN      TXT
|
| ;; AUTHORITY SECTION:
| localhost.            86400   IN      SOA
| dns1.premiernet.net. info.premiernet.net.
| 2002071500 10800 3600 604800 86400
|
| ;; Query time: 2 msec
| ;; SERVER: 205.229.224.251#53(205.229.224.251)
| ;; WHEN: Tue Oct 29 15:48:29 2002
| ;; MSG SIZE  rcvd: 101
|
| mail:~# dig @localhost 20.236.158.12.localhost. a
|
| ; <<>> DiG 9.2.1 <<>> @localhost 20.236.158.12.localhost. a
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44451
| ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
|
| ;; QUESTION SECTION:
| ;20.236.158.12.localhost.     IN      A
|
| ;; ANSWER SECTION:
| 20.236.158.12.localhost. 2048 IN      A       127.0.0.2
|
| ;; Query time: 1 msec
| ;; SERVER: 127.0.0.1#53(localhost)
| ;; WHEN: Tue Oct 29 15:50:35 2002
| ;; MSG SIZE  rcvd: 57
|
| mail:~# dig 20.236.158.12.localhost. a
|
| ; <<>> DiG 9.2.1 <<>> 20.236.158.12.localhost. a
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52062
| ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
|
| ;; QUESTION SECTION:
| ;20.236.158.12.localhost.     IN      A
|
| ;; AUTHORITY SECTION:
| localhost.            86400   IN      SOA
| dns1.premiernet.net. info.premiernet.net.
| 2002071500 10800 3600 604800 86400
|
| ;; Query time: 28 msec
| ;; SERVER: 205.229.224.251#53(205.229.224.251)
| ;; WHEN: Tue Oct 29 15:50:50 2002
| ;; MSG SIZE  rcvd: 101
|
| (results of spamassassin -tD):
|
| debug: checking RBL localhost., set local
| debug: Got the following IPs: 12.158.236.20, 127.0.0.1
| debug: But only inspecting the following IPs: 12.158.236.20, 127.0.0.1
| debug: Got 0 on 12.158.236.20 (item 1)
| debug: Check_rbl returning 0
|
|
|
|
| -------------------------------------------------------
| This sf.net email is sponsored by:ThinkGeek
| Welcome to geek heaven.
| http://thinkgeek.com/sf
| _______________________________________________
| Spamassassin-talk mailing list
| [EMAIL PROTECTED]
| https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
|



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to