Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation

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.

Edit | Attach | Print version | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r2 - 07 Apr 2009 - 20:48:28 - Main.JustinSchaefer