DNS_GetIp function

Call the DNS_GetIp function to get the first IP address of a host.

Format:

String FirstIP = DNS_GetIp(String DnsHost, Integer DnsPort, String HostToResolve)

Parameters:

DnsHost

Character string representing the name or IP address of a DNS server.

DnsPort

Integer representing the listening port of the DNS server.

HostToResolve

Character string representing the host to resolve.

FirstIP (return)

Character string representing the first IP address of the host to resolve. If an error occurs, the returned character string is empty.

Example:

log "www.agileload.com IP = " + DNS_GetIp("DnsServer",53, "www.agileload.com");

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap