🌏 A tiny 0-dependency thread-safe Java™ lib for setting/viewing dns programmatically without touching host file, make unit/integration testing portable; and a tiny tool for setting/viewing dns of running JVM process.
[!NOTE] Start from
DCM 1.7+
upgrade toJava 8
🚀 If you needJava 6
support, use version1.6.x
org.jetbrains:annotations
when assembly DCM toolmaven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.8.1</version>
</dependency>
Already deployed to maven central repository.
[!NOTE] Start from
DCM 1.7+
upgrade toJava 8
🚀 If you needJava 6
support, use version1.6.x
Java 8
latest version(8u352
) (issue #115 submitted by @arcuri82)codecov.io
in CImaven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.8.0</version>
</dependency>
Already deployed to maven central repository.
Start from
DCM 1.7+
upgrade toJava 8
🚀
maven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.8.0-RC1</version>
</dependency>
Already deployed to maven central repository.
DCM 1.7+
upgrade to Java 8
🚀bash-buddy
maven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.7.2</version>
</dependency>
Already deployed to maven central repository.
DCM 1.7+
upgrade to Java 8
🚀apache.commons.io
runtime dependency of DcmTool
maven
(e.g. running test) config for Java 17v1.6.x
JavaVersionUtilTests
JUnit 4
test cases to kotest
🍩maven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.7.1</version>
</dependency>
Already deployed to maven central repository.
DCM 1.7+
upgrade to Java 8
🚀kotlin
/kotest
🍩 for testingmaven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.7.0</version>
</dependency>
Already deployed to maven central repository.
Java6
, is maintain mode fix bug only.pluginManagement
for POM
maven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.6.5</version>
</dependency>
Already deployed to maven central repository.
InetAddressCacheUtilForJava9Plus#inetAddress$Addresses2DnsCacheEntry
codeclimate issue #66InetAddressCacheUtilForJava8Minus#inetAddress$CacheEntry2DnsCacheEntry
#65initFieldsOfInetAddressCachePolicy
method issue in InetAddressCacheUtilCommons
#64@*AreNonnullByDefault
instead of @Nonnull
, less noisymaven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.6.4</version>
</dependency>
Already deployed to maven central repository.
file
actionclone
instead of explicit copy for String[]
DcmTool.main
agentmain
Field
word of methods that return field valueDcmAgent
FILE
-> FILE_KEY
in DcmAgent
DcmAgent
HOME
env var instead of hard-coded value in AppVeyor CImaven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.6.3</version>
</dependency>
Already deployed to maven central repository.
inetAddress$Addresses2DnsCacheEntry
setter/getter
of Field
instead Object
typeInetAddressCacheUtilForJava9Plus
INVALID_IPV_6_ADDRESS
-> INVALID_IP_V6_ADDRESS
versionGreatThanEq
loose
maven dependency:
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.6.2</version>
</dependency>
Already deployed to maven central repository.