summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/op_mode/dns_forwarding_reset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/dns_forwarding_reset.py b/src/op_mode/dns_forwarding_reset.py
index 1dc0d51e3..da4fba3a2 100755
--- a/src/op_mode/dns_forwarding_reset.py
+++ b/src/op_mode/dns_forwarding_reset.py
@@ -40,10 +40,10 @@ if __name__ == '__main__':
sys.exit(0)
if args.all:
- print("Unimplemented, broken in pdns 3.x")
+ os.system("rec_control wipe-cache \'.$\'")
sys.exit(1)
elif args.domain:
- os.system("rec_control wipe-cache {0}".format(args.domain))
+ os.system("rec_control wipe-cache \'{0}$\'".format(args.domain))
else:
parser.print_help()
sys.exit(1)