Brekeke SIP Server Wiki

$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

 

Example:
$nslookup("domain.com") = (.+)

Get the IP address of domain.com.

 

See Also:

$nsreverse

Yes No
Suggest Edit