浏览代码

added flush-cache

Fmstrat 2 年之前
父节点
当前提交
2d89d6d264
共有 1 个文件被更改,包括 4 次插入0 次删除
  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