Skip to content

Instantly share code, notes, and snippets.

@kkarad
Last active September 26, 2015 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkarad/1048721 to your computer and use it in GitHub Desktop.
Save kkarad/1048721 to your computer and use it in GitHub Desktop.
Find jvm's default dns cache expiry time
public class Foo {
public static void main(String[] args) {
System.out.println(sun.net.InetAddressCachePolicy.get());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment