Get the App
SLTechnology News&Howtos  ›  Servers  › 

The hosts file does not work

Shulou Source: shulou.com Published: 2022-06-03 07:58:59 12月06日 Update

Suddenly found that the computer's hosts file does not work.

The previous use is very normal, and it has not been modified recently. First of all, rule out what format, DNS, registry and so on.

Final solution (permission issue: there is a lock on the icon of the problematic hosts file):

1. Copy the services file and rename it to hosts1 under C:\ Windows\ System32\ drivers\ etc.

two。 Empty the contents of the hosts1 file and copy the contents of the hosts file to hosts1 and save it (notepad runs as an administrator).

3. Delete the hosts file and change the hosts1 file name to hosts.

Got it.

Tags: File question content function method icon permission format registry computer administrator notepad identity management run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn OPPO Reno Apple Xiaomi