diff --git a/examples/zone-export.py b/examples/zone-export-bind.py similarity index 87% rename from examples/zone-export.py rename to examples/zone-export-bind.py index 9c5a0c3..5c100c2 100644 --- a/examples/zone-export.py +++ b/examples/zone-export-bind.py @@ -31,6 +31,7 @@ print(zone_file) # Save to a file -with open("example.com.txt", "w") as f: +output_file = f"{zone_name}.txt" +with open(output_file, "w") as f: f.write(zone_file) -print("Zone file saved to example.com.txt") +print(f"Zone file saved to {output_file}")