Can you point a domain to Digital Ocean without changing nameservers?

August 14, 2015 2.6k views
DNS DigitalOcean Ubuntu

Sorry if this is long. So I've run into bit of an issue. I'm using Hover for my domain, and am using Unbounce for our landing page. Unbounce requires that the nameservers should stay as default and just requires me to change the CNAME and create a subdomain and it works no problems.

I assumed the same could be done with Digital Ocean, so I created two subdomains from two droplets (one Django and one Ghost, both Ubuntu) and basically copied what I did with Unbounce and pointed the CNAMES to the droplet IP addresses. This didn't seem to work, so I changed the nameservers in Hover to the Digital Ocean ones and it worked, but this caused my Unbounce page to no longer be available. The landing page is the priority at the moment so I just changed it back to Hover's default nameservers for the time being. Is it possible to point to the subdomains I created in Digital Ocean without having to change the nameservers on Hover?

1 Answer

You just need to create the A records on your domain control panel at your registrar. So for example create the A record "sub.domain.com" and redirect it to your IP. Then let your ubuntu machine handle that A record to the proper direction.

  • This was really helpful for me - I couldn't get the DNS to work for a while but I was CNAME-ing instead of creating an A record (everything I know about DNS I know by trial and error, so I've been flying blind).


Have another answer? Share your knowledge.