summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-20 14:12:09 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-20 14:12:09 +0200
commit8c459924e2e9532ef0ec869615162fc6cd0e3a5f (patch)
tree56666075c587059f89be2307e57eb136a0610479 /src/op_mode
parent6c8cb81354b0c8baff4ed15a887c8a7fee212c9c (diff)
downloadvyos-1x-8c459924e2e9532ef0ec869615162fc6cd0e3a5f.tar.gz
vyos-1x-8c459924e2e9532ef0ec869615162fc6cd0e3a5f.zip
T603: complete the reset dns forwarding command.
Diffstat (limited to 'src/op_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)