Add a command after creating or deleting a virtual server


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:{ID}&auth-password={Password}&domain-name={Domain}&zone-type=slave&master-ip={Master IP}

Delete Slave:{ID}&auth-password={Password}&domain-name={Domain}

Martin Koekenberg



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.