Skip to content

Commit 1ce34fe

Browse files
committed
update readme
1 parent 7118633 commit 1ce34fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

library/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Java Dns Cache Manipulator(DCM) Library
3838
- 一个`JVM`进程可以对应一套域名绑定,相互之间不影响,可以实现多场景,多域名绑定的需求压测。
3939
1. 打开`Java`中的`SecurityManager`时(如在`Web`容器`Tomcat`中的`Web`应用),`Java``DNS`缺省是不会失效的。
4040
如果域名绑定的`IP`变了,可以通过这个库重置`DNS`,作为一个临时的手段(***强烈不推荐***)。
41-
- 通过[`Java Dns Cache Manipulator Tool`](tool)修改运行中`JVM DNS Cache`
41+
- 通过[`Java Dns Cache Manipulator Tool`](../tool)修改运行中`JVM DNS Cache`
4242
**无需**应用包含了`Java Dns Cache Manipulator Library`依赖(即`Jar`)。
4343
- 或通过执行入口调用`Java Dns Cache Manipulator Library`的方法,比如远程调用或是[`jvm-ssh-groovy-shell`](https://github.com/palominolabs/jvm-ssh-groovy-shell)
4444
***需要***应用已经包含了`Java Dns Cache Manipulator Library`依赖(即`Jar`)。

tool/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,15 @@ DnsCache{cache=[DnsCacheEntry{host='bar.com', ips=[1.1.1.1], expiration=29227899
6666
list DONE.
6767
```
6868

69-
清空`DNS Cache`
69+
删除/清空`DNS Cache`
7070
---------------
7171

7272
```bash
73+
# 删除一条DNS
74+
$ dcm -p 12345 rm baidu.com
75+
rm DONE.
76+
77+
# 清除DNS
7378
$ dcm -p 12345 clear
7479
clear DONE.
7580
```

0 commit comments

Comments
 (0)