Have you restarted your router and modem lately?
Your error message from the original post mentions the hosts file. I know of it, but know nothing about how it works other than it can affect your access to internet sites. Have you modified the hosts file, or used some utility to do it? If so, try to revert to a basic hosts file and test internet access.