On 24/01/2020 09:22, Denghui Dong wrote:
Hi Alan,
In our production environment, the content of /etc/resolv.conf may be
modified because of some reason, and we found that JVM can't know it when it
running.
There are some ways to fix this problem, one way is Adding -Dsun.net.spi.nameservice.provider.1=dns,sun
to enable sun.net.dns.ResolverConfigurationImpl, but
the TIMEOUT value is too long for us, so we hope to use a system
property to control it.
If I read this correctly, you are running with
-Dsun.net.spi.nameservice.provider.1=dns,sun so that InetAddress is
using the DNS-only name service provider (based on JNDI-DNS), is that
correct? Just checking because that mechanism was removed in JDK 9,
maybe you are proposing this for jdk8u?
-Alan