.pdf)
WHM Plugins
lookupnsip function from within your custom script:
/xml-api/lookupnsip function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/lookupnsip
lookupnsip function from within your custom script:
/json-api/lookupnsip function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/lookupnsip
lookupnsip function takes the following required variable as input: ns1.example.com
lookupnsip function. https://example.com:2087/xml-api/lookupnsip?nameserver=ns1.example.com will produce output similar to:
<lookupnsip>
<ip>127.0.0.1</ip>
</lookupnsip>
https://example.com:2087/json-api/lookupnsip?nameserver=ns1.example.com will produce output similar to:
{
"ip":"127.0.0.1"
}