JDK-8201428 : Provide a standard API for name resolution
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9.0.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2018-04-11
  • Updated: 2018-04-11
  • Resolved: 2018-04-11
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
I'm sorry if this is not the right mechanism for doing this but I can't find another means.

Within our product (BiglyBT) we have been making use of the DNS SPI for various reasons (proxing of certain DNS requests; triggering of the installation of software to handle various proxied domains). 

We need to be able to intercept DNS resolution requests and then either handle them ourselves or forward them to the default provider. From Java 9 we have been using reflection to access java.net.InetAddressImpl for delegation but this is obviously not optimal and also generates an 'illegal reflective access' warning with threats about future prohibition.

A feature we also want to implement, but are wary of doing so given the current support, is use of services such as DNS-over-HTTPS provided by Cloudflare (https://developers.cloudflare.com/1.1.1.1/dns-over-https/) via a DNS proxy.

We are very interested in having a standard way of achieving our aims here!

JUSTIFICATION :
Please see above



Comments
Added the details as comment to JDK-8192780.
11-04-2018