I was able to modify my host file on my Windows 10 laptop by copying it onto my desktop, modifying it and then pasting it back to the system32/drivers/etc folder. I'm doing this to prevent me from going to certain sites. I'm using one of these host files from GitHub:
https://github.com/StevenBlack/hosts
The issue is after I make this change and restart my computer, my computer won't reconnect to the internet. Upon restart my CPU usage will rise and when viewing the task manager this service:
Service Host: DNS Client
is causing the CPU usage to spike to at least 30% but the catch is the task never seems to finish (I waited at least 30-45 min). The host file I pasted in does have a lot of entries (2,000 or so) so wasn't sure if the number of websites you insert can cause issues like this or if there is some other steps I should be taking when modifying the host file?
hosts
files can cause severe problems with DNS resolution.