From: Michael Tremer Date: Fri, 2 Jan 2026 15:07:11 +0000 (+0000) Subject: exporters: Move any TXT records out of the apex X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07bb3efbb9fac5c0ff533196861501658533c2ac;p=dbl.git exporters: Move any TXT records out of the apex Some RPZ clients consider anything existing in the apex a wildcard match for anything. Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/exporters.py b/src/dnsbl/exporters.py index ea53331..ef54366 100644 --- a/src/dnsbl/exporters.py +++ b/src/dnsbl/exporters.py @@ -289,18 +289,18 @@ class ZoneExporter(TextExporter): # Add the update timestamp (in human-readable format) if self.list.updated_at: - f.write("@ IN TXT \"updated-at=%s\"\n" % self.list.updated_at.isoformat()) + f.write("_info IN TXT \"updated-at=%s\"\n" % self.list.updated_at.isoformat()) # Add the license if self.list.license: - f.write("@ IN TXT \"license=%s\"\n" % self.list.license) + f.write("_info IN TXT \"license=%s\"\n" % self.list.license) # Add the description if self.list.description: - f.write("@ IN TXT \"description=%s\"\n" % self.list.description) + f.write("_info IN TXT \"description=%s\"\n" % self.list.description) # Add total domains - f.write("@ IN TXT \"total-domains=%s\"\n" % len(self.list)) + f.write("_info IN TXT \"total-domains=%s\"\n" % len(self.list)) # Write all domains for domain in self.list.domains: