Domain name redirects to IP address

I registered a new domain, changed its nameservers to point to DO’s. I went to my control panel, added a new domain:

Now when I goto the site redirects to the IP address. How can I keep it pointing to the domain name?

And when I goto (notice www.) it gives: Server not found

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.

What web server do you have installed on your droplet? <br> <br>Also, did you create a CNAME “www” with host “@”?

Please list the files you have in these two directories: <br><pre>/etc/apache2/sites-available</pre> <br>and <br><pre>/etc/apache2/sites-enabled</pre>

I just installed Apache, php and mysql <br>Then I installed reddit using this script: <br> <br>I told the script to install it in /var/www/maghnatis <br>But if you navigate to you get a directory list <br> <br>Even though says ‘It Works’