IP failover or similar / Dynamic hostname

March 31, 2014 2.3k views
Hi there, I'm building a service where basically the users will be able to create their own portfolio. Thus, they will be able to connect their own hostname to my application. They could do it by modifying the A record and pointing it to my droplet ip. But, if I loose this ip, every customer would have to reconfigure their hostname... What would you recommend ? Thanks for you help
2 Answers
You can let your customers set an CNAME to the domain.
This way you have the control of the IP thats connected with the CNAME.

"CNAME Records: The CNAME record works as an alias of the A Record, pointing a subdomain to an A record— if an A Record’s IP address changes, the CNAME will follow to the new address. " - https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean

Good luck!
by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.

Thanks for your answer.

Unfortunately you cannot set a CNAME at the root level. This is prohibited by most providers and is against the RFC.

This is why I was talking about the A reccord.

Have another answer? Share your knowledge.