why my domain doesn't work without a www. prepended

I have set up everything in the hostname, I have been following the tutorial provided here in digitalocean and I have a small problem, which I want to fix it.

if I go it’s ok it shows me my site but if I go it transfers me to which is the default site of the provider.

can someone help me out ? thank you

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.

thank you for the answers.

respectfully genti

Seems to work fine here! You might need to flush your DNS cache.

If you’re using OS X Yosemite 10.10.4, open Terminal and execute: sudo killall -HUP mDNSResponder

If you’re using Windows, open up the Command Prompt and execute: ipconfig /flushdns

And finally, if you’re using Linux, restart the nscd daemon: /etc/rc.d/init.d/nscd restart

Check again working fine at my end :)