IP failover or similar / Dynamic hostname

Posted March 31, 2014 3.9k 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

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.

Submit an Answer
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. " -

Good luck!

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.