Question

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

  • Posted February 11, 2015

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?

Subscribe
Share

If that is the case, what is the work around to create a redirect?

FYI: There is no such thing as a Redirct nor an ALIAS DNS record. It’s more of a creative workaround a DNS operator may or may not provide server side.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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 :-)

there’s no the way then redirect for your purpose.

you have to set redirect on your web server level.

if you dont want to touch web server then you can use cloudflare page rule option. in that case you have to use cloudflare but i would recomend you to go for the first option (webserver)