Question

Setup DNS for my droplet

  • Posted on April 8, 2025
  • DNS
  • sapAsked by sap

Hi, I have my domain on Namecheap and I don’t want to move nameservers.

I am trying to point app.mydomain.com to the droplet, and I added this subdomain on DigitalOcean.

I added an A record on Namecheap that points to the IP of the droplet. It’s been over 24 hours now, and the domain still doesnt work for me.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 9, 2025

Hey there 👋

If you’ve kept your domain on Namecheap and added an A record pointing app.mydomain.com to your Droplet’s IP, that’s generally all you need.

First, make sure the A record is actually for app and not something like www.app. Then, check that your web server, whether it’s Nginx or Apache, is properly configured to serve traffic for app.mydomain.com. If the server isn’t set up to recognize the domain, you’ll get a default page or an error.

It’s also worth running a quick DNS lookup with dig app.mydomain.com or using a tool like https://www.digitalocean.com/community/tools/dns to confirm that your record has propagated globally. Keep in mind that DNS changes can sometimes take time, and local DNS caching or browser cache might delay what you see, trying in incognito mode or flushing your DNS cache can help.

Let me know what the exact error is that you are getting.

- Bobby

KFSys
Site Moderator
Site Moderator badge
April 10, 2025

Heya,

Make sure your DNS has actually propagated:

https://www.digitalocean.com/community/tools/dns

It sounds to me like the A record you have created for your subdomain is not actually working at all.

alexdo
Site Moderator
Site Moderator badge
April 10, 2025

Heya, @sap

The DNS should have updated for the 24 hours it’s been but you can still check if all locations return the expected IP address:

https://www.whatsmydns.net/

Regards

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.