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

Josh Long josh at joshlong.com
Thu Feb 3 00:07:51 UTC 2022


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?

Ideally,

var url = URl.create( "http://my-service/data") ;
try (var in = url.openStream()){
 //
}

would route through my implementation (which would know what to do with a
non DNS entry like `my-service`) and then, if my implementation can't
resolve, it gets resolved by the default system DNS resolver

Thanks,
Josh Long
@starbuxman
Spring Developer Advocate, Tanzu
VMware
http://BootifulPodcast.fm
http://ReactiveSpring.io
http://CloudNativeJava.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20220202/08744217/attachment.htm>


More information about the net-dev mailing list