hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Müller (JIRA) <j...@apache.org>
Subject [jira] Issue Comment Edited: (HTTPCLIENT-670) add an interface for plugable dns clients
Date Tue, 17 Jul 2007 18:57:04 GMT

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

Daniel Müller edited comment on HTTPCLIENT-670 at 7/17/07 11:56 AM:
--------------------------------------------------------------------

If you have access to the JVM and if it's a Sun JVM, you can change the DNS provider directly.
Check [1] on how to do that. I think the request still makes sense, but when changing the
DNS provider directly, you don't have to touch the code (never done it though, and I think
they changed the SPI interface for 1.6 (very unfriendly, see bug at [2])).

By the way, there's a way on Sun VMs to set the TTL as a commandline option [3].

Hope that helps...

Cheers,
Daniel

[1] http://www.dnsjava.org/dnsjava-current/doc/org/xbill/DNS/spi/DNSJavaNameService.html
[2] http://sourceforge.net/tracker/index.php?func=detail&aid=1702231&group_id=18000&atid=118000
[3] http://www.rgagnon.com/javadetails/java-0445.html


 was:
If you have access to the JVM and if it's a Sun JVM then you can change the DNS provider directly.
Check [1] on how to do that. I think the request still makes sense, but when changing the
DNS provider directly, you don't have to touch the code (never done it though, and I think
they change the SPI interface for 1.6 (very unfriendly, see bug at [2])).

By the way, there's a way on Sun VMs to set the TTL as a commandline option [3].

Hope that helps...

Cheers,
Daniel

[1] http://www.dnsjava.org/dnsjava-current/doc/org/xbill/DNS/spi/DNSJavaNameService.html
[2] http://sourceforge.net/tracker/index.php?func=detail&aid=1702231&group_id=18000&atid=118000
[3] http://www.rgagnon.com/javadetails/java-0445.html

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


Mime
View raw message