diff options
-rwxr-xr-x | zones.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,6 +47,6 @@ if __name__ == "__main__": name = domain["name"] zone = get_zone(name) path = os.path.join(args.path, name + ".zone") - with open(path, "ab") as zone_file: + with open(path, "wb") as zone_file: zone_file.write(zone) log.info(f"Wrote {name}'s zone file to {path}") |