How do I map subdomain from Godaddy to DO Droplet?

January 13, 2016 1.7k views
Getting Started DNS

Hi, I have a domain name that currently points to Squarespace. In additional to this domain name, I'd like to create a subdomain that points to my DO Droplet.

Do I need to create an A Record that points to my Droplet IP or is there a different way to go about this?


  • You need to create an A record that points to the IP address of your droplet. That is, simply, how DNS works.

    Even after that, if you want more subdomains pointing to the IP, you can just create CNAME records to reference the A record that points to your droplet.

  • Cool, just to double check, I don't need to do anything under Networking > Domains, correct? Only create the A Record pointing to the Droplet IP in GoDaddy.

  • @climbrick That's correct. As long as you are adding the DNS records to the name servers that are authoritative for that domain, you should be good to go!

1 Answer


To set this up, you'll need to add an A record for the subdomain with whoever hosts the name servers for your domain. This may be your registrar, it may be DigitalOcean, or it may be hosted elsewhere. If you aren't sure of where your domain's DNS is hosted, you can find out by looking up your domain's whois record in the section called "Name Server". When adding the subdomain record, you will generally only need to add the name of the subdomain (i.e., the record for '' would only be named 'sub' and added to the '' zone). From there, once the A record is pointed to your Droplet and the web server is configured, you should not have a problem connecting to your Droplet using the subdomain.

Hope this helps!

DigitalOcean Support

Have another answer? Share your knowledge.