By billgau
Hi, I have www.mysite.com and mysite.com working. I will be creating subdomains for this site on the same server such as
customer1.mysite.com
Now customer1.mysite.com is accessible. When I try www.customer1.mysite.com. I get dns_unresolved_hostname
I have a cname for www to mysite.com and tried to add cname “www” for customer1.mysite.com and it would not let me. Please let me know what I have to add in dns to get both www and non-www to work with each subdomain I created.
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!
There are two ways this is generally accomplished.
The first which is not possible completely on DigtialOcean would be to delegate the subdomain to another DNS server or zone and create a zone specifically for customer1.mysite.com. This is overkill for this need but would solve the problem.
The second and easier way to do this in the DigitalOcean control panel would be to create a CNAME record like this on your domain:
www.customer1 CNAME customer1
Yes, as you said CNAME record www for customer1.mysite.com will report an error.
To make it working, you should be able to add CNAME record www.customer1 for mysite.com instead of www for customer1.mysite.com
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.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.