Domain name only works for a few minutes

  • Posted October 3, 2014

Hello, im new here at DO, and i love it but, yesterday i just installed my apache and configured its virtualhost, then i setup ns in my domain provider and here in DO for domain but its works only a few minutes and then stop working. I check that apache is running fine. If i enter with the ip address it works but not with the domain. Also if a ping works fine.

Thank You and please help me :(


work fine with, but not with www


I think what you need is a CNAME. Log on to your Digital Ocean control panel, Go to the DNS section, on the domain in question, add a CNAME in the “name” field enter WWW and in the “Enter host name” field type @. This is assuming you have and A record already set with @ pointing to your IP address. if you didn’t add that as well. Hope that resolves your issue.

NOTE: You need to give it some time to propagate. does not exist, according to the resolvers I tried.

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

A cname already exists now (i think you followed @DarkSaint’s suggestion) and i can see that both work now (www, and without www). What i’d suggest you use a htaccess to redirect either the requests to to or vice-versa.