• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Add DNS Record via REST API

NicoDeluxe

New Pleskian
Hi,

i need to add DNS records to an existing domain. In the documentaion i cannot find it, how can i do this or where can i find more Information? I just find how to add a whole domain
 
I am afraid this can't be done trough the REST API. It is possible trough the XML api or using the CLI.
 
Thank you. Ca you give me some more info? I can find something regarding xml api but don’t get find any details to this xml api
 
So contrary to my previous post, I think you can actually use the REST API to add DNS records. You'll have to use the CLI methode from the API to do so. The CLI methode allows you to run any of the PLESK CLI functions trough the REST API. More information on the CLI functions for the can be found here: dns: DNS Zones on Domains

Alternatively you can use the XML API. General information about the XML API can be found here: About XML API. The specific reference for DNS can be found here:

And a PHP wrapper/sdk is available from Github: plesk/api-php-lib
 
Last edited:
Definitely need this in the REST API. Full control over DNS Records. Add, Delete and Update should be there by default.
 
Seems you're right. Not sure why there isn't an option to add records. (You could try a POST to the API to see if it works anyway.)

The change log entry for Plesk 18.0.36 made it sound like there would also be an option to add DNS records. My bad.
 
Seems you're right. Not sure why there isn't an option to add records. (You could try a POST to the API to see if it works anyway.)

The change log entry for Plesk 18.0.36 made it sound like there would also be an option to add DNS records. My bad.
Given that it literally says:

It is now possible to add and manage DNS records (including TTL) in a DNS zone via REST API

I'd try a POST request (maybe Plesk didn't update their reference? ) or contact Plesk to clarify
 
Back
Top