回复: RFR (XS) 8237806: Convert TIMEOUT of sun.net.dns.ResolverConfigurationImpl into property
Denghui Dong
denghui.ddh at alibaba-inc.com
Fri Jan 24 09:53:09 UTC 2020
yes, you are right.
来自钉钉专属商务邮箱------------------------------------------------------------------
发件人:Alan Bateman<Alan.Bateman at oracle.com>
日 期:2020年01月24日 17:34:30
收件人:Denghui Dong<denghui.ddh at alibaba-inc.com>; net-dev<net-dev at openjdk.java.net>
主 题:Re: RFR (XS) 8237806: Convert TIMEOUT of sun.net.dns.ResolverConfigurationImpl into property
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/f99f848b/attachment-0001.htm>
More information about the net-dev
mailing list