[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513467
 ] 

Ralf Hauser commented on HTTPCLIENT-670:
----------------------------------------

Daniel, thx for the interesting hints. Unfortunately, we do plan to use it also 
with 1.6.

also, as per your ref[1], that sun.net.spi.nameservice.NameService interface 
only has a 

  byte[][]      lookupAllHostAddr(String host) 

method, while InetAddress.getByName() doesn't expect multiple responses - 
haven't looked at the implementation details - will it just return the first if 
there are multiple ? Interestingly, 
http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html#getByName(java.lang.String)
 doesn't mention the possiblity that there are multiple numeric address for one 
mnemonic one.

> add an interface for plugable dns clients
> -----------------------------------------
>
>                 Key: HTTPCLIENT-670
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-670
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpConn
>            Reporter: Armin Häberling
>             Fix For: 4.0 Beta 1
>
>
> Currently Httpclient implicitly uses InetAddress.getByName() for DNS 
> resolution.
> This has some drawbacks. One is that the DNS cache of Java per default caches 
> entries forever.
> So I'd like to be able to replace InetAddress.getByName() with another DNS 
> client implementation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to