Add a command after creating or deleting a virtual server

Hello,

I use Cloudns. I can add or delete a zone via an url (Api). It should be nice If I can add a post (wget) command after adding/creating a virtual server with a domain. The same when deleting a server. Also when adding multiple domains or restoring a backup.

Add Slave: https://api.cloudns.net/dns/register.xml?auth-id={ID}&auth-password={Password}&domain-name={Domain}&zone-type=slave&master-ip={Master IP}

Delete Slave: https://api.cloudns.net/dns/delete.xml?auth-id={ID}&auth-password={Password}&domain-name={Domain}

Martin Koekenberg

Status: 
Active

Comments

Virtualmin has a facility already for running pre and post domain creation commands. You can set this up on the System Settings -> Virtualmin Configuration page.