cPanel XMLAPI - setresolvers
This function configures the nameservers that your server will use to resolve domain names. It is highly important that your resolving nameservers work and work well or your server may have performance and stability issues.
Variables
Input
- nameserver1 (string)
- Ip address of the first resolving nameserver.
- nameserver2 (string)
- Ip address of the second resolving nameserver.
- nameserver3 (string)
- Ip address of the third resolving nameserver.
Output
Example
Calling
/xml-api/setresolvers?nameserver1=4.2.2.2&nameserver2=4.2.2.1 in WebHost Manager will produce output similar to:
<setresolvers>
<setresolvers>
<msgs>Listed in order they are:</msgs>
<msgs>4.2.2.2</msgs>
<msgs>4.2.2.1</msgs>
<status>1</status>
<statusmsg>Your resolvers have been setup!</statusmsg>
<warns></warns>
</setresolvers>
</setresolvers>
Copyright
Copyright 2008 cPanel Inc.
Topic revision: r2 - 07 Apr 2009 - 20:48:28 - Main.JustinSchaefer