]> git.ipfire.org Git - dbl.git/commitdiff
exporters: Move any TXT records out of the apex
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2026 15:07:11 +0000 (15:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2026 15:07:11 +0000 (15:07 +0000)
Some RPZ clients consider anything existing in the apex a wildcard match
for anything.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/exporters.py

index ea533315ce9563e22fb4969ec90dad15189efeee..ef54366113aa2173090a9fd9475b72aad89526c4 100644 (file)
@@ -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: