I can’t seem to get a subdomain to point to my spaces. I did the CDN stuff in the spaces settings then it automatically created a CNAME under the networking tab, however, it’s still not working.

The subdomain does show up as one of my endpoints on the spaces section of Digital Ocean.

Is there anything else I have to do?

My main domain is pointing to a droplet. Now, I just want a subdomain to point to spaces.

I used the DNS tool here: https://www.digitalocean.com/community/tools/dns but it says that I don’t have a CNAME set, however, it was set in the networking tab

Thanks!

1 comment

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.

×
2 answers

so the domain, at your registrar is the DNS server set to DigitalOcean? If not you can do 2 things. Either set up the cname record on the dns server typically there at the registrar or reset the dns server to digital oceans.

ns1.digitalocean.com
ns2.digitalocean.com

keep in mind DNS changes can take a day to propagate.

Hi @HuzaifaPatel,

@ultimateseo ’s suggestion is not all right.DigitalOcean’s DNS are

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

And,please try to add this value as CNAME record for the subdomain you want to add to Spaces’ CDN:

cds.b5g9b8e4.hwcdn.net

This value is right the second record behind {bucket}.{region}.cdn.digitaloceanspaces.com .

Here is the official tutorial

How to Enable the Spaces CDN

Hope this helps,
Shiroka

  • Hi,

    Yes, I have DNS set like that.

    Sorry, what do I have to do with cds.b5g9b8e4.hwcdn.net ?

    My CNAME is currently set to the following:

    Hostname: subdomain.mydomain.net
    value: spacename.nyc3.cdn.digitaloceanspaces.com.
    TTL (seconds): 3600

    How does this look?

    • spacename.nyc3.digitaloceanspaces.com

      is what I have my cname pointed too.

      network.trueinfluence.com is the example. It loads appropriately. If youd like to confirm the cname target which is likely similar to yours you may find https://do.co/dns-lookup useful.
      using that tool whatever the cname record is for network.trueinfluence.com should give a clue to what your values should be.

      edited by MattIPv4
  • The dns servers do not require the third option. ns3.digitalocean.com can be added, but its optional.

    As for the added stuff, I have no clue what youre talking about. But I know that the cdn I created points to the endpoint that you can find in the spaces section. Typically its the bucket name then (depending upon the region you have choosen) nyc3.digitaloceanspaces.com

    But thats only really important if you are not using the dns server provided by digitalocean. If you are using them then this shoukd be auto populated for you.

Submit an Answer