• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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