Say I have domain.com and I would like it to serve up static content hosted on a DigitalOcean Space.
I updated my DNS registrar (GoDaddy) to have ns1.digitalocean.com and ns2.digitalocean.com as the nameservers per https://docs.digitalocean.com/tutorials/dns-registrars/
In Networking - Domains, on digitalocean.com, I added domain.com and www.domain.com. On creation each domain had 3 NS entries:
I then created a DigitalOcean Space, uploaded my files and added www.domain.com as a custom subdomain:
Doing so added a CNAME record to the domain.com:
The problem is that when I visit www.domain.com or domain.com in my browser I get a “This site can’t be reached” error. Doing nslookup www.domain.com yields the following:
Server: UnKnown
Address: 192.168.1.1
Name: www.domain.com
What do I need to do to make it so that www.domain.com is serving up content from the CDN?
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!
Hi there,
As you are getting a UnKnown response from the nslookip, keep in mind that it might take up to 24 hours for the DNS cache to clear up once you’ve made a DNS change.
Regarding the main domain not responding, once you’ve changed your nameservers, did you add an A record for domain.com to point to your server IP address?
As a side note, regarding the CDN, usually, I would go for cdn.domain.com or static.domain.com rather than www as the www version is, in most cases, an alias for the main domain name rather than a CDN.
https://docs.digitalocean.com/products/spaces/how-to/enable-cdn/
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.