Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151872

negative dns lookups are cached longer than set if time is changed

XMLWordPrintable

    • generic
    • generic

      FULL PRODUCT VERSION :
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Set dns caching for negative dns lookup in java.security file
      networkaddress.cache.negative.ttl=60

      Do some dns lookup via InetAddress.getAllByName("host")
      which results in UnknownHostException.

      Immediately move system time one hour back (before cached entry expires).

      If host becomes available after short time UnknownHostException still occurrs because dns lookup is not performed until one hour passes.




      REPRODUCIBILITY :
      This bug can be reproduced always.

            robm Robert Mckenna
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: