.pdf)
WHM Plugins
resolvedomainname function from within your custom script:
/xml-api/resolvedomainname 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/resolvedomainname
resolvedomainname function from within your custom script:
/json-api/resolvedomainname 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/resolvedomainname
1.
1 — Indicates success
0 — inidcates failure
1.
https://example.com:2087/xml-api/resolvedomainname?api.version=1&domain=example.com
will produce output similar to:
<result>
<data>
<ip>192.168.0.1</ip>
</data>
<metadata>
<result>1</result>
<reason>OK</reason>
<version>1</version>
<command>resolvedomainname</command>
</metadata>
</result>
https://example.com:2087/json-api/resolvedomainname?api.version=1&domain=example.com
will produce output similar to:
{
"data":{
"ip":"192.168.0.1"
},
"metadata":{
"result":1,
"reason":"OK",
"version":1,
"command":"resolvedomainname"
}
}