Report this

What is the reason for this report?

Any idea how to add domains dynamically on demand?

Posted on July 25, 2019

Hello, good morning, I am looking for a service in which, when a customer makes a payment, their domain is purchased and installed directly in the system, until here everything is fine, using apache wildcards I manage to do it with the subdomains and with that no I have a problem, what I need to do is that for example, when a user buys an “example.com” domain, this domain is added to my server once, without having to manually add it to the VPS domain handler, someone has managed to implement something similar that can tell me your solution at least the idea?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you’re building your own service, you can create DNS records using the API:

https://developers.digitalocean.com/documentation/v2/#create-a-new-domain-record

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.