yes, you are right.



来自钉钉专属商务邮箱------------------------------------------------------------------
发件人:Alan Bateman<alan.bate...@oracle.com>
日 期:2020年01月24日 17:34:30
收件人:Denghui Dong<denghui....@alibaba-inc.com>; net-dev<net-dev@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

Reply via email to