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

Make InetAddressCachePolicy configurable by host

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Java 17 Corretto 17.0.10

      A DESCRIPTION OF THE PROBLEM :
      With this class it is possible to set the ttl for dns cache.
      But I'd like to set the ttl per hostname.
      Like: neworkaddress.cache.specific.ttl=some.host.com:5;other.host.com:15
      In some format of a set to be able to give multiple custom host names, and have networkaddress.cache.ttl for the global settings.
      Reason is: for some hosts you use, you might know that the IP is not changing, or not that frequently, but some are changing in few secs. Setting globally 5 sec for what you use might be an overkill.
      Please consider this as improvement idea for next possible release. (If not yet proposed already.)


            aefimov Aleksej Efimov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: