X-Git-Url: https://git.ralfj.de/zonemaker.git/blobdiff_plain/cfd2f5fc1e06dc0fa0894d2b49405cb424d335ff..e2ed490c0ba53712c9625c3be2d49d372fb7220d:/zone.py?ds=sidebyside diff --git a/zone.py b/zone.py index b0d055e..1e1251a 100644 --- a/zone.py +++ b/zone.py @@ -147,7 +147,7 @@ class RR: return self def __str__(self): - return column_widths((self.path, time(self.TTL), self.recordType, self.data), (32, 8, 8)) + return column_widths((self.path, time(self.TTL), self.recordType, self.data), (8*3, 8, 8)) ## Record types class A: @@ -369,5 +369,5 @@ class Zone: def write(self) -> None: print(";; {} zone file, generated by zonemaker on {}".format(self._name, datetime.datetime.now())) print("$ORIGIN {}".format(self._name)) - for rr in map(lambda rr: rr.relativize(self._name).mapTTL(self.getTTL), self.generate_rrs()): + for rr in map(lambda rr: rr.mapTTL(self.getTTL), self.generate_rrs()): print(rr)