Is there a way to programmatically add a DNS mapping for a WordPress site?

I am trying to find a way to add a CNAME (a subdomain) to map to another website using the add a DNS Record option described here: https://en.support.wordpress.com/domains/custom-dns/#adding-custom-dns-records

However, I want to do this via code such that if provided the ‘Type’, ‘Name’ and ‘Points to’ fields, it is able to add the respective entry.

Read more here:: Is there a way to programmatically add a DNS mapping for a WordPress site?

Leave a Reply

Your email address will not be published. Required fields are marked *