I had a droplet set up running off an IP address and I needed to add a domain to it.
I added say ‘www.foo.com’ using the domain control panel.
My client also wanted ‘foo.com’ to work and I was in a hurry, so I simply added that domain as well.
Now both work fine (there aren’t any redirections).
Reading back over the DNS documentation however, I see that I apparently shouldn’t have done it that way. The correct procedure is to have added the bare domain foo.com and then added the www version as an alias?
What are the advantages to doing it that way? What’s wrong with what I did? Have I set myself up for problems in the future?
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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!