Domain Name to IP Address Redirection no Working Properly

  • Posted November 11, 2013

I have recently started using DigitalOcean. My domain/hosting is managed my Hostgator. I have installed WordPress/LEMP/CentOS6. I want to point to Droplet’s IP. I can’t change nameserver to avoid messing up email, so, yesterday I set A Record to Droplet’s IP. It seems to work fine most of the time. But it has been hit and miss. From time to time domain name wouldn’t take me to my WordPress install but something “Index of /” and a blank page with root of Hostgator’s Apache server space.

What is the proper way to setup my domain name to point to IP address here at the Digital Ocean?


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.

I know my way around Linux but I haven’t used CentOS. I don’t prefer Debian or Ubuntu because one is like mountain which moves slowly and other modifies heavily downstream. I don’t mind spending some time to learn. <br> <br>CentOS is a clone of upstream and 6.4 is supported for 7 years. Once I am out of these initial snags I should be good for next 7 years. <br> <br>Thanks for your help.

Sounds like you’re having all sorts of problems. BTW, why did you choose CentOS over Ubuntu? In light of the struggles you’ve had, perhaps you should reconsider. While both are comparable, in terms of quality, Ubuntu has a reputation of being more n00b friendly.

BTW along with “Index of /” page I am also sometimes being redirected to 404 Page. I am not sure where to look for help here at the DO or at the Hostgator. <br> <br>I want to make a few things clear before I seek further help. <br> <br>I am suppose to set domain’s A Record and not CNAME. Is that correct? <br> <br>If I am managing my domain through Hostgotar, no settings are needed to be changed from DO’s interface. And all I have to do in Hostgator panel is to set A Record. Is that correct?

I could make the switch but I am new to DigitalOcean and it is not a full fledged domain manager. <br> <br>Thanks for comment. I still have the problem, so, I will make a post it is resolved in Hostgator forums.

<b>“I can’t change nameserver to avoid messing up email…”</b> <br> <br>Why is that? Couldn’t you simply add your current <code>MX records</code> to the DigitalOcean DNS Manager? <br> <br><b>“… so, yesterday I set A Record …”</b> <br> <br>Remember that DNS changes can take up to 48 hours to <i>fully</i> propagate through the Internet. <br> <br><b>“What is the proper way to setup my domain name to point to IP address here at the Digital Ocean?”</b> <br> <br>If you’re going to keep your DNS records with Hostgator, you’ll more likely find a solution (assuming there’s even a problem – again, it could be a simple propagation issue) from them; since they (probably) know their own DNS manager better than anyone here. <br> <br>If you’re open to switching, check out <a href=“”>How To Set Up a Host Name with DigitalOcean</a>.