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.
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.