See if this tutorial is useful:
https://www.tenforums.com/tutorials/140970-reset-hosts-file-back-default-windows.html
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post: Vote = a helpful post
.
.
.
.