You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2007/07/17 11:50:04 UTC

[jira] Commented: (HTTPCLIENT-670) add an interface for plugable dns clients

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

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

Suggestion: add least add an abstract wrapper interface whose implementations either use the current getByName or do something smarter such as using dnsjava.org


if you were to use the implementation as is, I guess it is important to do something like 
   Security.setProperty("networkaddress.cache.ttl", "300");

otherwise, long running applications may reach the wrong physical servers if the dns servers changed the ip addresses while the application was running

   see also JAMES-679

> 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
>
> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org