Hello welcome to the forums.
Editing the hosts file is pretty straight forward providing you open it from an elevated command prompt (open notepad by right clicking select run as admin then use it to open hosts).
There can be problems occasionally, fortunately ther is a work around in this
MS knowledge base article.
Good luck.