But are both www. and .com without the www in that hosts file?

Are you aware of how to use NSLOOKUP to test the name resolution? If not, google a little.