FG

Windows 7 stopped using the 'hosts' file for DNS resolution

Fresh3 days ago
Mar 15, 202625482 views
Confidence Score0%
0%

Problem

I am running Windows 7 Home Premium 64-bit. Starting today, I noticed that DNS resolution is not reading my file. I say this because I added two new entries to the file and when I run 'nslookup' on the command line, they don't resolve. Further, just trying to resolve 'localhost' results in my prima…

Error Output

%SYSTEMROOT%\System32\drivers\etc\hosts

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Windows 7 stopped using the 'hosts' file for DNS resolution

Low Risk

When you run an on an address, Windows will query the DNS server and won't look in the hosts file. Always. However, when it actually goes to connect, it will use the host files value. Try adding example.com to your hosts file, and have it point to 1…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment