Show Bid Request
Set DNS caching value / Java /Tomcat
Bid Request Id: 29206
|
|
|
Posted by: |
InProd (20 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 19.35%
|
Posted: |
Sep 29, 2002 6:49:05 PM EDT
|
Bidding Closes: |
Oct 1, 2002 EDT
|
Viewed (by coders): |
78 times
|
Deadline: |
10/3/2002
TIME EXPIRED
|
|
|
|
Description:
I am using Java 1.3.1_02 servlets with Tomcat 3.2 / Apache. I would like to reset the DNS caching parameter networkaddress.cache.ttl. Where do I do this? Java.policy? Explanation follows. The InetAddress class has a cache to store successful as well as unsuccessful host name resolutions. The positive caching is there to guard against DNS spoofing attacks; while the negative caching is used to improve performance.
By default, the result of positive host name resolutions are cached forever, because there is no general rule to decide when it is safe to remove cache entries. The result of unsuccessful host name resolution is cached for a very short period of time (10 seconds) to improve performance.
Under certain circumstances where it can be determined that DNS spoofing attacks are not possible, a Java security property can be set to a different Time-to-live (TTL) value for positive caching. Likewise, a system admin can configure a different negative caching TTL value when needed.
Two Java security properties control the TTL values used for positive and negative host name resolution caching:
networkaddress.cache.ttl (default: -1)
Indicates the caching policy for successful name lookups from the name service. The value is specified as as integer to indicate the number of seconds to cache the successful lookup. A value of -1 indicates "cache forever".
networkaddress.cache.negative.ttl (default: 10) Indicates the caching policy for un-successful name lookups from the name service. The value is specified as as integer to indicate the number of seconds to cache the failure for un-successful lookups. A value of 0 indicates "never cache". A value of -1 indicates "cache forever".
Deliverables: Description of exactly where to change parameters in Tomcat or Java
Platform:
Windows Linux
Must be 100% finished and received by buyer on:
Oct 3, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$10 (USD)
|
Sep 29, 2002 8:40:37 PM EDT
|
10
(Excellent)
|
|
|
Hi Friend,
I have gone through your problem statement. The problem/question you mention is related to java net. The properties you can set in a couple of ways:-
#1. You can set like this within your code System.setProperty('networkaddress.cache.ttl','0')
#2. Modify your java.security file with the appropriate properties. java.security file is located in JDK_HOME\jre\lib\security directory of your JDK installation. Add the following line to that file networkaddress.cache.ttl=0
#3. If your application is an console application you can also set as runtime parameter ie. like -Dnetworkaddress.cache.ttl=0
Hope i have given necessary information regarding your problem/question. Pls feel free to contact for any other information.
Also if u have any questions/problems/projects in future, kindly contact me. I will give my best.
Thanks/regards, BismiSoft.
|
|
|
|
|
|