Report this

What is the reason for this report?

How to configure naked domain for an app?

Posted on September 26, 2023

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!



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!

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 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

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!

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.