How do I set my domain to forward to a subdomain?

Please view my current DNS set up: link to set-up

I want to have subdomain: and I want all requests to to be forwarded to

The result being whether you provided the blog subdomain or not you are taken to the so the user knows that they are viewing the blog.

I have tried creating an A record and a CNAME record. Neither work.

For a CNAME if I set the name “@” and the hostname “blog.” I get the error: cname records cannot share a name with other records.

Do I need a differently configured CNAME record or an A record?

Thanks, Tom

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.

If you want requests for other domains to be redirected to (i.e. the user always sees ‘’ in their url bar), then you need to set up a 301 redirect. This is accomplished via your web server. Let me know what server you are using, and I’ll show you how.

Did you just want to redirect all http traffic to One method to do this is to create a catch-all DNS entry and then create a virtual host (or server block) with your webserver. For DNS

CNAME    *

Note the period at the end above when entering the record in the DO control panel.

Search the tutorials to match your distribution and webserver; search for the string “virtual host”. In your case, set the default virtual host or server block to handle