Sometimes your test plans will point to DNS records that either aren't public or have specific IP addresses which you need to override.
You can achieve this by providing a
.hosts file with your test plan. It doesn't matter what you call the file, as long as it has the extension
.hosts for example,
In this file you can then specify an IP address to return for any host in the given domains. Queries in the domains are never forwarded and always replied to with the specified IP address which may be IPv4 or IPv6. You can also add wildcards/
address=/#/18.104.22.168 will always return
22.214.171.124 for any query not answered from /etc/hosts or DHCP and not sent to an upstream nameserver. We use Google's nameservers for resolution
One or more domains with no address returns a no-such-domain answer, so
address=/example.com/ returns NXDOMAIN for
example.com and all its subdomains.
A more common example is just to override a specific subdomain,
address=/loadtest-staging.flood.io/126.96.36.199 will return
You can override multiple entries with multiple lines: