Have you checked this? write www.google.com and google.com in your browser’s address bar, then hit Enter. Both will work. same as true for Yahoo!, WordPress.com and other leading sites. Again there are some sites which won’t work without ‘www‘, like www.buet.ac.bd will work but buet.ac.bd won’t work.
So what’s the reason behind this?