RFR (XS) 8237806: Convert TIMEOUT of sun.net.dns.ResolverConfigurationImpl into property
Alan Bateman
Alan.Bateman at oracle.com
Fri Jan 24 09:34:30 UTC 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200124/029ef65f/attachment.htm>
More information about the net-dev
mailing list