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


This comment has been deleted

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.

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