JVM and OS DNS Caching

前端 未结 3 640
你的背包
你的背包 2021-02-07 20:16

I am facing a problem with JVM and DNS.

Everything I\'m reading (including the docs and this) says that I can disable JVM DNS caching using networkaddress.cache.tt

3条回答
  •  伪装坚强ぢ
    2021-02-07 21:00

    I think I've run into this problem, or a very similar one. What I did then was to implement my own DNS provider for the JVM, see how to change the java dns service provider for details. You can use the dnsjava mentioned there or roll your own.

提交回复
热议问题