Skip to content

How to reset the Hosts file back to the default — by Microsoft Support

advancedpageLink only (©)

A modified Hosts file can break name lookups and cause connection trouble. The page shows how to restore the default one on Windows 10 and 11.

Quick steps

  1. Save the default Hosts text from the page to a file named hosts on the desktop
  2. Open C:\Windows\System32\drivers\etc
  3. Rename the existing file to Hosts.old
  4. Copy the new hosts file in and approve the admin prompt

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on support.microsoft.com

Source: How to reset the Hosts file back to the default by Microsoft Support. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

hosts filednsname resolution

More in Networking