Hello kateckh,
If you're getting errors regarding to the ability to save the file you've opened with the 'nano' command, it may be that it was not opened using the 'sudo' command.
Enter this command and press Return:
sudo nano /private/etc/hosts
While it's not necessary to enable to the root user for this particular issue, the 'sudo' command allows you to act as the root user, which will allows for the modification of the 'hosts' file you'll need to edit.
Error 3194, Error 17, or "This device isn't eligible for the requested build"
http://support.apple.com/kb/TS4451
Enabling and using the "root" user in Mac OS X
http://support.apple.com/kb/HT1528
Cheers,
Allen