Alertra Script Language 1.9

dns

Does a domain name lookup on the given name. This command is a prerequisite for all protocol commands (http, ftp, imap4, etc...).

Normally, HTTP/S session information (e.g. cookies and headers) are thrown out when the 'dns' command in executed. The 'noreset' option holds the session information over for use in subsequent HTTP/S requests.

Domain name information is cached by the Bind deamon. You can instruct the 'dns' command to use fresh data by including the 'nocache' option. This causes 'dns' to use it's own recursive name resolver instead of using Bind's. The name information will be downloaded from the nameserver each time. Use this if you are interested in measuring DNS performance time.

If you are connecting directly via an IP address, specify the IP address here instead of a domain name. DNS lookup. Available options are:

  • noreset Include the keyword 'noreset' to keep the HTTP/S session information from being cleared.

usage: dns [name] [noreset,nocache]

parameters:

req name type description
Y name expression Domain name to resolve to an IP.
N options list Comma separated list of options for the

examples

dns "www.alertra.com"

Gets the IP address for the domain name www.alertra.com. Makes this IP address available to all ASL protocol commands.

dns "192.168.42.30"

Since this is an IP address already, this dns command makes this IP address available to all ASL protocol commands.

dns "www.alertra.com" noreset

Gets the IP address for the domain name www.alertra.com. Makes this IP address available to all ASL protocol commands. HTTP/S session information is retained for subsequent HTTP/S commands.


Alertra Script Language: Language Reference