How to connect subdomain to my droplet?

I am new to hosting. I had someone create a subdomain and we wanted to connect it to my droplet. I created DNS A Record, the hostname being the subdomain and is directed to my droplet. The subdomain works for some time before it gives me an error page. I have to delete and re-enter my domain name to make it work again. How can I make it live indefinitely?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @alincastre496,

Can you let us know the error that you are receiving? Additionally, I’ll recommend if your DNS has propagated properly. You can check that one by accessing the following website and typing in your subdomain in there :

One other thing, but that’s for later if everything with the DNS is correct, have you added your website to your WebService (Apache/Nginx)?

Regards, KFSys