Question

How to configure naked domain for an app?

DO is configured to handle my DNS records and I have successfully created a CNAME record pointing to www.mydomain.com. However, when a user attemptes to visit mydomain.com I get a 404. I cannot seem to find a way to create a record to address the naked domain in the admin portal. Can anyone tell me what I am missing?

TIA!


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.

alexdo
Site Moderator
Site Moderator badge
September 27, 2023

Hello @krollrich

All DNS changes will take some time in order to update and respectfully the DNS to start resolving. You can use our DNS lookup tool to check if the DNS settings are correct:

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

Hope that this helps!

Hi there,

Is your website hosted on the DigitalOcean App Platform or on a Droplet?

If you are using a Droplet, then you would need to add an A record for your main domain name to point to the Droplet’s IP address and a CNAME record for your www version to point to your main domain.

If you are using the App Platform, you can follow the steps here on how to add your main domain name to your app and as you are already using the DigitalOcean nameservers, the DNS should be automatically configured for you:

https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/

Also note that in both cases, it might take up to 24 hours for the DNS cache to clear over the Globe before you could see the new records.

Let me know how it goes!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel