You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The domain name is not case-sensitive, and the domain name will be converted to lower case uniformly before entering the DNS Cache.
218
-
One of the causes is that the case of the domain name in the DNS query result will be different from the case of the entered domain name, if the entered domain name has uppercase letters.
219
-
- For the logic that has been resolved and saved the IP, setting the JVM DNS cache will not take effect! The connection can be re-created or the Client can be resolved.
// Re-create GetMethod to get the results on your own machine
236
-
GetMethod m2 =newGetMethod("https://bing.com");
237
-
client.executeMethod(m2);
238
-
content = m2.getResponseBodyAsString();
239
-
```
221
+
#### JVM settings for Java 17
222
+
223
+
If use DCM under Java 17, add below Java options:
224
+
225
+
```java
226
+
--add-opens java.base/java.net=ALL-UNNAMED
227
+
--add-opens java.base/sun.net=ALL-UNNAMED
228
+
```
229
+
230
+
#### Domain name case
231
+
232
+
The domain name is not case-sensitive, and the domain name may be converted to lower case uniformly before entering the DNS Cache.
233
+
234
+
One of the causes is that the case of the domain name in the DNS query result will be different from the case of the entered domain name, if the entered domain name has uppercase letters.
235
+
236
+
#### Domain resolvation cache
237
+
238
+
- For the logic that has been resolved and saved the IP, setting the JVM DNS cache will not take effect! The connection can be re-created or the Client can be resolved.
In the [`InetAddressCacheUtilForJdk8Minus`](library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJdk8Minus.java) class, the read and write to the DNS Cache also consistently adds a synchronized block with addressCache as the lock to ensure thread safety.
57
+
In the [`InetAddressCacheUtilForJava8Minus`](../library/src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtilForJava8Minus.java) class, the read and write to the DNS Cache also consistently adds a synchronized block with addressCache as the lock to ensure thread safety.
58
58
59
59
## Need to test different versions of JDK
60
60
@@ -66,11 +66,11 @@ The current tested LTS `JDK` versions 6/8/11/17, other `JDK` versions should wor
0 commit comments