NSLookup

Get IP address by DNS name

NSLookup description

NSLookup used to get IP address from DNS hostname

Parameters

  • Host name - DNS hostname to get IP address
  • Return errors - if an error occurs, the error text will be returned as the IP address
  • Check if the hostname is correct - check hostname against standard
  • Get hostnames by IP address - if an IP address is specified as the hostname, DNS names for this IP address will be returned

Returned value

Returns the IP address, hostnames, or 0. If "Return errors" is enabled and an error occurs, the error text will be returned instead of the IP address. IPv4 and IPv6 addresses supported.

If an IPv4 or IPv6 address is specified in the "Host name" parameter and several DNS names were obtained during the DNS query, the following happens:

  • The entire resulting array of values is converted to JSON text and saved to a database with a history of values
  • If the counter has dependent counters, then ALEPIZ will call them as many times as the values are received in the array and each time pass the %:PARENT_VALUE:% new value from the value array as a variable.