Page 1 of 1

Can I add DNS record via API

Posted: Mon Dec 11, 2017 11:02 am
by become
I have DNS for domain.com

Can I add new DNS entry for this domain via API call ?? How ?

Re: Can I add DNS record via API

Posted: Mon Dec 11, 2017 11:36 am
by Phogo
yes, you should be able to do this via the API, see the following example https://vestacp.com/docs/api/#add_domain

Re: Can I add DNS record via API

Posted: Mon Dec 11, 2017 3:11 pm
by vanderheyde
There is no pre-made config for that (as shown in the examples).

However, there exists a script for it (v-add-dns-record is the one, i think), which you can call in the same way as the examples. The full list is in /usr/local/vesta/bin/