Can I override DNS hostnames or use a custom hosts file?

Sure! Let’s say you want to script against one environment, and then run load tests against a different environment. One easy way to do this is by overriding the DNS entries for your target environment with a custom hosts file.

To get to it, open your test scenario and click the wrench for the v-user group(s) in question.

Getting to the advanced v-user group settings

Click to expand the custom hosts file…

Overriding IP addresses for hostnames

Your custom hosts file should use the usual /etc/hosts format, but limited to a single hostname per line. Also, comments in your hosts file may be ignored or stripped out.

Read more about this and other advanced configuration options in Running Load Tests.