Turn of DNS caching in the Java runtime

Posted on 2011-10-13
Last Modified: 2012-05-12
Please let me know how I can turn of DNS caching in the Java runtime.
The solution here says that I must do that to be on the safer side:

Question by:dshrenik
    LVL 86

    Accepted Solution

    java YourApp

    Open in new window


    Author Comment

    So is this specific to my particular application?

    If yes, that's great!

    Also, can you tell me how I can do this through java code. Thanks!
    LVL 47

    Expert Comment

    I can't find the place where they say thiat in the link, but in fact
    you don't need really to worry about it.
    Check two websites - one more rare than google - you can't predict all coincidences, so really don't pay attention to that
    LVL 86

    Expert Comment

    >>Also, can you tell me how I can do this through java code.
    System.setProperty("", "0");

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Hire Top Freelancers to Complete Java Projects

    Source the talented Expert Exchange community
    for top quality work on your Java projects.

    Hire the best. Collaborate easily. Get quality work.

    Suggested Solutions

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    This video teaches viewers about errors in exception handling.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now