nsLookup


SoftLayer_Utility_Network::nsLookup

Perform a nameserver lookup on given address.

Description

A method used to return the nameserver information for a given address

Parameters

Name Type Description
address string An IP address or hostname to nslookup.
type string The type of record to return A, MX, NS, CNAME, TXT.

Required Headers

Optional Headers

  • None

Return Values

  • string

Error Handling

  • Throw the exception “Please provide an address to nslookup.” if the address parameter is empty.
  • Throw the exception “Please provide a valid IP address or hostname.” if the address parameter is not a valid IP address or hostname.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Utility_Network/nsLookup'