.pdf)
WHM Plugins
setresolvers function from within your custom script:
/xml-api/setresolvers 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/setresolvers
setresolvers function from within your custom script:
/json-api/setresolvers 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/setresolvers
setresolvers function takes the following variables as input. While only the first is required, we recommend using more resolvers, if possible. setresolvers function. setresolvers request.
setresolvers request.
https://example.com:2087/xml-api/setresolvers?nameserver1=208.77.188.166&nameserver2=127.0.0.1 in WebHost Manager will produce output similar to:
<setresolvers>
<setresolvers>
<msgs>Listed in order they are:</msgs>
<msgs>208.77.188.166</msgs>
<msgs>127.0.0.1</msgs>
<status>1</status>
<statusmsg>Your resolvers have been setup!</statusmsg>
<warns/>
</setresolvers>
</setresolvers>
https://example.com:2087/json-api/setresolvers?nameserver1=208.77.188.166&nameserver2=127.0.0.1 in WebHost Manager will produce output similar to:
{
"setresolvers":[
{
"status":1,
"statusmsg":"Your resolvers have been setup!",
"msgs":[
"Listed in order they are:",
"208.77.188.166",
"127.0.0.1",
],
"warns":null
}
]
}