Hi All. Is it possible to create, edit, delete DNS records with REST API. I’ve seen examples on GitHub, but it’s not there.
Hi @IlyaT,
Using API is like using command line so these are the commands you can use to modify dns records.
$ ls /usr/local/hestia/bin/ | grep dns-rec
v-add-dns-record
v-add-remote-dns-record
v-change-dns-record
v-change-dns-record-id
v-delete-dns-record
v-delete-remote-dns-record
v-insert-dns-record
v-insert-dns-records
v-list-dns-records
v-suspend-dns-record
v-unsuspend-dns-record
Info and options:
$ for i in $(ls /usr/local/hestia/bin | grep dns-rec); do echo $i ; head -n3 $i | tail -n+2 ; echo ; done
v-add-dns-record
# info: add dns record
# options: USER DOMAIN RECORD TYPE VALUE [PRIORITY] [ID] [RESTART] [TTL]
v-add-remote-dns-record
# info: add remote dns domain record
# options: USER DOMAIN ID
v-change-dns-record
# info: change dns domain record
# options: USER DOMAIN ID RECORD TYPE VALUE [PRIORITY] [RESTART] [TTL]
v-change-dns-record-id
# info: change dns domain record id
# options: USER DOMAIN ID NEWID [RESTART]
v-delete-dns-record
# info: delete dns record
# options: USER DOMAIN ID [RESTART]
v-delete-remote-dns-record
# info: delete remote dns domain record
# options: USER DOMAIN ID
v-insert-dns-record
# info: insert dns record
# options: USER DOMAIN DATA
v-insert-dns-records
# info: inserts dns records
# options: USER DOMAIN DATA_FILE
v-list-dns-records
# info: list dns domain records
# options: USER DOMAIN [FORMAT]
v-suspend-dns-record
# info: suspend dns domain record
# options: USER DOMAIN ID [RESTART]
v-unsuspend-dns-record
# info: unsuspend dns domain record
# options: USER DOMAIN ID [RESTART]
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.