Re: improving java.net.UnknownHostException

2021-10-29 Thread Florian Weimer
* Daniel Fuchs: > The platform built-in resolver that performs name-to-address > resolution delegates to `getaddrinfo`. AFAICS `getaddrinfo` doesn't > seem to provide this level of granularity in the error codes > that it might return - though maybe distinguishing between > some of the errors it r

Re: improving java.net.UnknownHostException

2021-10-29 Thread Alan Bateman
On 29/10/2021 14:44, Richard Gibson wrote: The OCI DNS team are fielding an increasing amount of usage by customers relying upon Java, and the lack of detail associated with java.net.UnknownHostException for differentiating e.g. timeout vs. NXDOMAIN vs. NODATA vs. SERVFAIL vs. REFUSED has cost

Re: [External] : Re: improving java.net.UnknownHostException

2021-10-29 Thread Richard Gibson
Oh, I'm not familiar with that so I don't know. From: Florian Weimer Sent: Friday, October 29, 2021 11:41 To: Richard Gibson Cc: net-dev@openjdk.java.net Subject: Re: [External] : Re: improving java.net.UnknownHostException * Richard Gibson: >

Re: [External] : Re: improving java.net.UnknownHostException

2021-10-29 Thread Florian Weimer
* Richard Gibson: > Probably the OpenJDK implementation, which currently appears to return > even less information than the famously-restrained getaddrinfo. But > I'd love to see use of something better such as getdns if that is not > already the case. Oh, I was asking about the other OpenJDK nam

Re: [External] : Re: improving java.net.UnknownHostException

2021-10-29 Thread Richard Gibson
riday, October 29, 2021 10:41 To: Richard Gibson Cc: net-dev@openjdk.java.net Subject: [External] : Re: improving java.net.UnknownHostException * Richard Gibson: > The OCI DNS team are fielding an increasing amount of usage by > customers relying upon Java, and the lack of detail asso

Re: improving java.net.UnknownHostException

2021-10-29 Thread Daniel Fuchs
Hi Richard, Information about hosts that are embedded in exceptions are often limited and constrained for security reason. That said, possibly some more details could be included in some circumstances, for instance, if allowed by the jdk.includeInExceptions property. The platform built-in resolv

Re: improving java.net.UnknownHostException

2021-10-29 Thread Florian Weimer
* Richard Gibson: > The OCI DNS team are fielding an increasing amount of usage by > customers relying upon Java, and the lack of detail associated with > java.net.UnknownHostException for differentiating e.g. timeout > vs. NXDOMAIN vs. NODATA vs. SERVFAIL vs. REFUSED has cost a great deal > of ti

improving java.net.UnknownHostException

2021-10-29 Thread Richard Gibson
The OCI DNS team are fielding an increasing amount of usage by customers relying upon Java, and the lack of detail associated with java.net.UnknownHostException for differentiating e.g. timeout vs. NXDOMAIN vs. NODATA vs. SERVFAIL vs. REFUSED has cost a great deal of time in investigating issue