Re: DNS resolution fails after resolv.conf update

2015-05-05 Thread Stanislav Baiduzhyi
On Monday 04 May 2015 22:26:26 Bernd Eckenfels wrote: > not sure how I feel about the res_init(). Depending on the backends > used this might be expensive. Especially since it wont be rate > limited. The negative-ttl of 10s is for single records I thing. So at a > minimum you should rate-limit res_

Re: DNS resolution fails after resolv.conf update

2015-05-05 Thread Stanislav Baiduzhyi
Hi Christos, On Monday 04 May 2015 21:16:40 Christos Zoulas wrote: > I don't think it is the job of the JDK to handle this. For example > many systems (like NetBSD for example) work just fine without > needing this, because their libc keeps track of resolv.conf changes. Normally I would agree wit

DNS resolution fails after resolv.conf update

2015-05-04 Thread Stanislav Baiduzhyi
Hi All, We are facing an issue with DNS server caching on RHEL-based distros: after the update of resolv.conf java application cannot resolve the hosts any more. Reproducer is very simple: 1. Clean /etc/resolv.conf or connect to vpn and use vpn-only nameserver. 2. Launch the minimal java app [1]