diff --git a/pom.xml b/pom.xml
index 2b1da88e056f..85bcf65108e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -981,7 +981,9 @@
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED
- --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
+ --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
+ --add-exports java.base/sun.net.dns=ALL-UNNAMED
+ --add-exports java.base/sun.net.util=ALL-UNNAMED
--add-opens java.base/jdk.internal.util.random=ALL-UNNAMED
${hbase-surefire.argLine} @{jacocoArgLine}