How can I modify my hosts file? It is read-only and cannot be modified even as Adminstrator.
Don't edit it in place. Take a copy of it, edit the copy and then replace the original with the edited copy. Doing all this as an administrator of course.
Always a good idea to keep a copy of the original version as well in case you need revert the changes.