1 Replies - 677 Views - Last Post: 27 January 2016 - 04:02 PM

#1 O'Niel  Icon User is offline

  • D.I.C Regular

Reputation: 14
  • View blog
  • Posts: 378
  • Joined: 13-September 15

DNS cache location Windows

Posted 27 January 2016 - 03:33 PM

Hi

A while ago I saw someone opening a file with all the DNS cache stored.
E.G:
google.com 123.456.789

By editing the IP he could redirect that user's traffic to that IP (because that's how DNS works, of course).
Now I want to do the same but I can't find the file.
C:\Windows\System32\drivers\etc\hosts

Ain't working.
Someone knows this?

Thanks!
Is This A Good Question/Topic? 0
  • +

Replies To: DNS cache location Windows

#2 Atli  Icon User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4238
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: DNS cache location Windows

Posted 27 January 2016 - 04:02 PM

That's the correct location. The file should be there on all Windows systems.
I'm not sure what damage it would do if it's missing (if any), but I assume you could just create it and then reboot.


Note, also, that this file is technically not a "DNS cache".
Think of it more like a permanent local override; the first place your OS will look for IPs before querying an actual DNS.

Caches can be cleared and rebuilt, and are typically generated automatically. This file does none of that.
There are other mechanisms in the OS that would be referred to as a "DNS cache", which have nothing to do with this file.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1