From: Michael Tremer Date: Wed, 17 Dec 2025 12:13:45 +0000 (+0000) Subject: export: Write more metadata into the zone apex X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cafe76c5c8cb6af2ef5cc3c2372028fdf03596a6;p=location%2Flibloc.git export: Write more metadata into the zone apex Signed-off-by: Michael Tremer --- diff --git a/src/python/location/export.py b/src/python/location/export.py index eeeb924..45c3296 100644 --- a/src/python/location/export.py +++ b/src/python/location/export.py @@ -345,6 +345,17 @@ class ZoneExporter(object): for nameserver in self.nameservers: f.write("@ IN NS %s\n" % nameserver) + # Write the vendor + if self.db.vendor: + f.write("@ IN TXT \"vendor=%s\"\n" % self.db.vendor) + + # Write the license + if self.db.license: + f.write("@ IN TXT \"license=%s\"\n" % self.db.license) + + # Write update timestamp in human-readable way + f.write("@ IN TXT \"updated-at=%s\"\n" % created_at.isoformat()) + # Write all records self.write(self, f)