Can we set up a hosts file to access new server via domain name before DNS changes, in gatling

I am setting up a new site or moving an existing site to a new server, and I would like to test the new site before the DNS is setup to point my domain name to this new server. How can I do this?

Hi Amar,

Couldn’t you simply use the IP address of the new server ?

Alternatively, if you don’t want to change the URL in your tests to an IP address (or something in your site won’t work if you’re not using the correct hostname), you could add an entry for it in your /etc/hosts file (or whatever the Windows equivalent is, if you’re using Windows).