On Jan 04, Scott Kitterman <[email protected]> wrote: > Can you point me to the package/test that's having this problem so I can > study > the specifics? rbldnsd.
After wasting a few hours trying to figure out what was wrong an a long
discussion on #debian-devel I had to apply this patch:
--- a/rbldnsd.py
+++ b/rbldnsd.py
@@ -3,6 +3,7 @@
"""
import errno
+import os
from itertools import count
import subprocess
from tempfile import NamedTemporaryFile, TemporaryFile
@@ -67,8 +68,12 @@ class Rbldnsd(object):
self.datasets = []
self.daemon_addr = daemon_addr
self.daemon_port = daemon_port
+ if os.environ.get('RBLDNSD_PATH'):
+ daemon_bin = os.environ.get('RBLDNSD_PATH')
self.daemon_bin = daemon_bin
self.stderr = stderr
+ # DnsRequest.__init__ fails if /etc/resolv.conf is empty
+ DNS.defaults['server'].append('127.0.0.1')
def add_dataset(self, ds_type, file, soa='example.com'):
self.datasets.append((soa, ds_type, file))
--
ciao,
Marco
signature.asc
Description: PGP signature

