Archive for August 13, 2009

When Disabling DNS Caching Doesn’t

If you’re going to fiddle with networkaddress.cache.ttl, do it before you touch the network. I was using the java.net.InetAddress class to resolve IP addresses from DNS names the other day. I wanted to test my code by manipulating my local system’s ‘hosts’ file, to quickly simulate moving IP addresses around behind a DNS name, so [...]

Posted on August 13, 2009 at 9:39 pm by Paul Brabban · Permalink · Leave a comment
In: Development, Java