How to configure subdomains to use www and non-www

September 16, 2016 120 views

Hi, I have and working. I will be creating subdomains for this site on the same server such as

Now is accessible. When I try I get dnsunresolvedhostname

I have a cname for www to and tried to add cname "www" for 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.

2 Answers

Yes, as you said CNAME record www for will report an error.
To make it working, you should be able to add CNAME record www.customer1 for instead of www for

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 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
Have another answer? Share your knowledge.