.pdf)
WHM Plugins
killdns function from within your custom script:
/xml-api/killdns 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/killdns
killdns function from within your custom script:
/json-api/killdns 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/killdns
killdns function takes the following required variable as input: killdns function. 1 — success.
0 — failure.
https://example.com:2087/xml-api/killdns?domain=example.com in WebHost Manager will produce output similar to:
<killdns>
<result>
<rawout>
example.com -> deleted from host1.
example.com -> deleted from host2.
</rawout>
<status>1</status>
<statusmsg>Zones Removed</statusmsg>
</result>
</killdns>
https://example.com:2087/json-api/killdns?domain=example.com in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Zones Removed",
"rawout":"example.com => deleted from server. \n"
}
]
}