How to Disable DNS caching
Once an application has gained network access (that is, a URL connection, parsing of XML document with external references, and so on), the DNS settings are cached, so any subsequent operation will use the old settings even if the real settings have changed.
To reset everything, do one of the following:
- Restart the server since the default JVM setting is to cache forever.
- You can change this behavior by adding the
sun.net.inetaddr.ttl=0
command to the Engines via JMeter properties. - In your Test configuration page, enter the JMeter property
sun.net.inetaddr.ttl=0
Run your test as planned.