simonpearce

Well-Known Member
Jun 20, 2003
90
0
156
Hi,

We need to be able to add/remove DNS records from zones in a cluster from a PHP script. For example:

remove:

domain.co.uk. 14400 IN MX 0 domain.co.uk.

and add:

domain.co.uk. 14400 IN MX 10 mta001.externalmx.com.
domain.co.uk. 14400 IN MX 10 mta002.externalmx.com.
domain.co.uk. 14400 IN MX 10 mta003.externalmx.com.
domain.co.uk. 14400 IN MX 10 mta004.externalmx.com.

Is this possible and how might we go about it?!

Cheers

Simon
 

MattCurry

Well-Known Member
Aug 18, 2009
275
0
66
Houston, Tx
Changing DNS Records from PHP Script

Hello,

I do understand what you are trying to do, unfortunately it would not be something we support or recommend. There are many things in this scenario that could cause problems. Not to say that it will not work, it is just not something we would be able to directly support.

Thank you,
Matthew Curry
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
Houston, TX
cPanel Access Level
Root Administrator
Another feature to mention in 11.25 is API2 calls for DNS editting, we should have these documented in the near future.

This will allow for DNS records to be securely edited as the user.

If this is something that will be done with root privileges.. then the XML-API calls should work fine.