Skip to content

Instantly share code, notes, and snippets.

@yangl
Created August 27, 2019 03:40
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 yangl/458cd287b28137009a575f5a26679f04 to your computer and use it in GitHub Desktop.
Save yangl/458cd287b28137009a575f5a26679f04 to your computer and use it in GitHub Desktop.
// 设置DNS缓存时长: 秒
Security.setProperty("networkaddress.cache.ttl", "10");
Security.setProperty("networkaddress.cache.negative.ttl", "3");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment