Browse Source

added flush-cache

Fmstrat 2 years ago
parent
commit
2d89d6d264
1 changed files with 4 additions and 0 deletions
  1. 4 0
      domain.sh

+ 4 - 0
domain.sh

@@ -28,6 +28,7 @@ Usage:
 	domain add-user-to-group <user> <group>
 	domain remove-user-from-group <user> <group>
 	domain update-ip <domain> <controller> <oldip> <newip>
+	domain flush-cache
 ';
 }
 
@@ -104,6 +105,9 @@ case "${1}" in
 		samba-tool dns update 127.0.0.1 ${2} ${3} A ${4} ${5} -U administrator
 		samba-tool dns update 127.0.0.1 ${2} @ A ${4} ${5} -U administrator
 		;;
+	flush-cache)
+		net cache flush
+		;;
 	*)
 		usage;
 esac