Add new Master IP to all Slave zones

About the script

With this scrip you can add a new IP address for Master server to all of your Slave zones hosted at ClouDNS. The script can be downloaded from our GitHub repository.


First thing you have to do after download it, is to setup your authentication parameter:

// Auth ID and Password
define("AUTH_ID", 0);
define("AUTH_PASS", "xxx");

AUTH_ID should be your API user ID and AUTH_PASS should be the password of your API user. For example, if your API ID is 190, instead 0 you have to type 190.

Afterwards you need to set up the IP of your Master Server:

// Extra Master IP address for the slave zones - it can be both IPv4 or IPv6
define("MASTER_IP", "");

Instead "" you should type the new IP address.


When you are ready with your configuration, you can run the script with the following command:

php add-new-master-ip-to-all-slave-zones.php


The script will output a list with all your Slave zones and a message that the Master server's IP is added.


If the API user ID or Password are incorrect, you will get an error message.

If the typed IP address is not valid, the following message will be shown: This is not a valid IP address.


Last modified: 2018-09-03
Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more