Cname Wildcard Redirects to main domain only

I noticed recently some strange behaviour - I tried to configure CNAME wildcards for all the sites on my droplet, so that,, etc., all lead to This worked fine with the first/main site I made on my droplet, let’s call that So goes to The funny thing is, while I tried to set up the same pattern for the other sites on my droplet, typos such as still take me to Bit of a n00b here, probably missing something obvious…

CNAME * (works) CNAME * (don’t work)

Show comments

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Not completely sure if this is the source of the issue or just a typo in your question.

CNAME * (works)
CNAME * (don't work)

As they are written here the second record would not function since it is missing the . at the end. Without this, the DNS system will consider this to be just part of the domain name.

I assume that these CNAME records are on separate domains since having multiple wildcards on one domain would not work properly since only the first one encountered would ever be used. If you can share your actual domain name or paste your zone files in their entirety it would make it much easier to assist you in getting this working as you want it.