aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzones.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zones.py b/zones.py
index 0099b3e..4bf05d6 100755
--- a/zones.py
+++ b/zones.py
@@ -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}")