Question

WWW CNAME Resolution Error

TLDR;

Creating a www CNAME in DO fails to resolve.

Context

  • I have a static site deployed at example.com
  • I have a different static site deployed at subdomain.example.com
  • Domain registrar is GoDaddy
  • Domain is managed by DO

The Problem

I simply want to create www CNAME records for both example.com and subdomain.example.com so each domain can be accessed with the www prefix.

Here is a screenshot of my DNS records as shown in DO:

DNS Records
DNS records as shown in DO

However, after saving these records (and waiting well over 72 hours) I receive the following CloudFlare error for both domains:

CloudFlare Error
CloudFlare error when trying to load www.example and www.subdomain.example

Solution?

From tutorials online, this seems like a straightforward task so I’m not sure what I’m doing wrong.

I have tried:

  • Following tutorials online
  • Tweaking my DNS records in a variety of ways
  • Waiting more than 3 days to ensure the system had time to resolve

Can you spot any problems in my DNS records attached?

Any help is greatly appreciated. Thank you!


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
June 28, 2023

Hi there,

Your DNS records look correct! Have you also added your www version to your App Platform as an extra domain name?

The error that you are getting indicates that this might not be the case. Let me know how it goes once you’ve added the www version as an additional domain to your app:

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