Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# XXX Add NS
f.write("@ IN NS master.lwldns.net.\n")
+ # 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())
+
+ # Add the license
+ if self.list.license:
+ f.write("@ 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)
+
+ # Add total domains
+ f.write("@ IN TXT \"total-domains=%s\"\n" % len(self.list))
+
# Write all domains
for domain in self.list.domains:
for prefix in ("", "*."):