networkaddress.cache.ttl

For better or worse, our organization relies on dynamic dns addresses to connect to our branches (static IP addresses are VERY expensive here).

Because of this I have set networkaddress.cache.ttl to sixty seconds. Which will work. But, it seems silly to have to change this setting for entire server when I only need to change it for one socket connection.

Short of doing an operating system call to nslookup, is their a more intelligent way to do this? Ideally I would like to control the DNS caching per connection.

Ideas would be appreciated.

Renen.

[584 byte] By [renena] at [2007-11-27 11:05:47]
# 1

I think you really mean you want to control it per address. Anyway you can't do that.

ejpa at 2007-7-29 13:10:58 > top of Java-index,Core,Core APIs...