简体   繁体   English

JVM DNS缓存和DNS循环

[英]JVM DNS cache and DNS round robin

How does the JVM DNS cache deal with DNS round robin? JVM DNS缓存如何处理DNS轮询? Does it cache all IP addresses for domain and then rotate among them, or does it cache one IP address and then use it for all future requests until cache expires? 它是为域缓存所有IP地址,然后在它们之间轮换?还是缓存一个IP地址,然后将其用于将来的所有请求,直到缓存过期?

It seems the JVM does not rotate the IP addresses. 看来JVM不会旋转IP地址。 It just picks up the one address and uses it for the lifetime of the process. 它只是选择一个地址,并在整个过程中使用它。 Check out this article from SUN/Oracle. 看看这个文章从SUN / Oracle的。 The only way out seems to be either tun off the DNS caching altogether or keep a low ttl time. 唯一的出路似乎要么完全关闭DNS缓存,要么保持较短的ttl时间。 Check out the following link as well. 还要查看以下链接。

http://www.verisigninc.com/assets/stellent/030957.pdf http://www.verisigninc.com/assets/stellent/030957.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM