Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have recently started using DigitalOcean. My domain/hosting is managed my Hostgator. I have installed WordPress/LEMP/CentOS6. I want mydomain.com 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?