$nslookup
Get the IP address from the given hostname.
Syntax:
$nslookup( hostname ) $nslookup( hostname, transport )
Parameters:
hostname – host name
transport – transport type
Returns:
If the host name is found in DNS, return the IP address.
Otherwise, return null.
Version Since:
3.1
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$nslookup("domain.com") = (.+)
Get the IP address of domain.com.