This topic describes example use cases of multiple mappings for the same hostname, and the expected result for each case.
Each use case includes a screenshot of the host mappings as they are configured in the Recorder. The screenshots have been modified to show what happens when the script is played back on the browser agents:
A red X () indicates that during playback, the agent either failed to connect to the specified IP address, or failed to resolve the destination hostname to an IP address.
A green check mark () indicates that the agent successfully connected to the IP address, or successfully resolved the destination hostname to an IP address.
If there is no X or check mark next to a destination, the agent would not attempt to map to that destination in the given use case.
Use case 1
Multiple Hostname to IP Address mappings exist for the same hostname. The agent fails to connect to all the destinations for the first mapping and connects to the second IP address in the second mapping.
Result: The hostname
abc.com will connect to IP address
Use case 2
The same origin hostname is mapped to both an IP address and a hostname. The Hostname to IP Address mapping passes.
Result: The agent will not attempt the Hostname to Hostname mapping. The hostname
abc.com will map to IP address
Use case 3
The same origin hostname is mapped to both an IP address and a hostname. The Hostname to IP Address mapping fails.
Result: A connection failure is reported because the Hostname to IP Address mapping failed. The agent will not attempt the Hostname to Hostname mapping.