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

Document 'jdk.net.hosts.file' system property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Delivered
    • Icon: P4 P4
    • 18
    • None
    • core-libs

      Non-standard, JDK-specific system property 'jdk.net.hosts.file' can be utilized to configure InetAddress to use a specific file, rather than the operating system's resolver, to map host names to IP addresses.
      The system property description and the file format need to be documented.
      There are two candidate locations to host the documentation:
      a) net-properties file - https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/net/doc-files/net-properties.html. Located in jdk repository at the following location: "src/java.base/share/classes/java/net/doc-files/net-properties.html"
      b) `InetAddress` class-level javadoc.

            aefimov Aleksej Efimov
            aefimov Aleksej Efimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: