I tried changing the host file and still getting same error! I changed host file by following the istructions by adding a "space then #"
I'm loosing my s#*@!
Completely removing the apple entries (backup hosts file first) and restarting itunes will allow you to restore ios5.