diff options
author | Jordan <me@jordan.im> | 2024-03-12 17:09:14 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2024-03-12 17:09:14 -0700 |
commit | 92154fb257138996a9169ed6bcb32992d40f9661 (patch) | |
tree | 87a1875ba9bc77658819b61c53738804b256216f | |
parent | 07db95756a1d5d4c9e1ff325979a473ce7f5f2f2 (diff) | |
download | desec-zones-master.tar.gz desec-zones-master.zip |
-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}") |