From: Michael Tremer Date: Sun, 21 Dec 2025 11:46:55 +0000 (+0000) Subject: exporters: Block all sub-domains, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8acbc021a9cca4bec434cde7e875d2126f16c5;p=dbl.git exporters: Block all sub-domains, too Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/exporters.py b/src/dnsbl/exporters.py index 5f579c0..8288f51 100644 --- a/src/dnsbl/exporters.py +++ b/src/dnsbl/exporters.py @@ -187,7 +187,8 @@ class ZoneExporter(TextExporter): # Write all domains for domain in self.list.domains: - f.write("%s IN %s %s\n" % (domain, self.type, self.content)) + for prefix in ("", "*."): + f.write("%s%s IN %s %s\n" % (prefix, domain, self.type, self.content)) class BlocklistExporter(ZoneExporter):