Question

How do I map subdomain from Godaddy to DO Droplet?

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?

Thanks!

Subscribe
Share

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!

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.


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.

Hi!

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 ‘sub.domain.com’ would only be named ‘sub’ and added to the ‘domain.com’ 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!

Adam DigitalOcean Support