possible to access the default DNS resolver for JEP 418 pass-thru resolution?

Alan Bateman Alan.Bateman at oracle.com
Thu Feb 3 12:08:57 UTC 2022


On 03/02/2022 00:07, Josh Long wrote:
> hello,
> I'm very interested in JEP 418: Internet-Address Resolution SPI, and I 
> was wondering: if I plugged in my own implementation via service 
> loader, would it be possible to obtain a reference to the default 
> implementation (the one that my implementation replaces) for pass-thru 
> resolution?
>
Yes, in the "Service-provider interface" section of the JEP it lists the 
new classes, one of which is Configuration that provides a reference to 
the built-in resolver.

-Alan.


More information about the net-dev mailing list