Question

DigitalOcean DNS - Where is the Redirect/ALIAS DNS Record?

I’m trying to redirect www. URL to non-www. but I do not see a Redirect or ALIAS DNS record option any where. How can I redirect my website/app using DNS?

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.

As @andol mentioned, ALIAS records are not really an industry standard.

If you wanted to set up a redirect from one domain to another yourself, you can point an A record for both domains to same server. Then perform the redirect using Apache or Nginx:

Just because something is not a standard…doesn’t mean it’s not a great idea! A standard is just some people’s idea of what something should do. So I don’t rate this top answer.

Let’s agree that ALIAS records are super useful and would be awesome and really really should be implemented :-)