KITE and Keynote agents can override the DNS lookup for a specific domain name, substituting a hard-coded IP address in its place.
DNS override in Transaction Perspective (TxP)
To override DNS lookup:
- Select the top-level script object in the Script eViewer.
Look for the Hosts line in the Script Properties Editor and click Add. !(/images/recorders/kite-help/dns-override/clip-image001.png)
The Name and IP Address fields appear:
- Enter the hostname to perform DNS override for in the Name field.
- Enter the IP address to use instead of performing DNS lookup.
- Whenever this host name appears in a URL (in the starting URL or any pages or page elements throughout the running of this script), KITE or the TxP agent on the Global Network will use the hard-coded IP address you supply here instead of performing a DNS lookup.
To add additional host names to override, click the Add button again:
You may add as many as you like.
DNS override in Application Perspective (ApP)
To override DNS lookup:
- Select the top-level script object in the Script Viewer.
Look for the Hosts line in the Script Properties Editor and click Add A Host entry appears:
Click the plus box to expand the Host entry: !(/images/recorders/kite-help/dns-override/clip-image003-0000.png)
Enter the host name to perform DNS override for in the Name field: !(/images/recorders/kite-help/dns-override/clip-image004-0000.png)
Enter the IP address to use instead of performing DNS lookup: !(/images/recorders/kite-help/dns-override/clip-image005.png)
- Save your script.
- To add additional host names to override, click the Add button again, expand the Host line by clicking the plus box and repeat the above procedure: !(/images/recorders/kite-help/dns-override/clip-image006.png)
Using variables in DNS override for Application Perspective
DNS Override in ApP supports the use of variables to assign the IP address value. Of particular interest here are the following two variable types:
Value from list – Use this to randomly choose an IP address from a list. Using this approach, you list the possible IP addresses, and optionally give them preference weightings. For example, here are four different IP addresses to substitute for images.company.com:
Virtual user data value – Use this to associate IP address values with rows in a virtual user table. With this approach, you can easily set a different IP address for each agent location.
Start by entering the IP addresses in the Virtual Profiles Editor:
Then set the Type to Virtual profile data value and choose the field name you stored the IP addresses in.
Save your script.