0

I was learning networking and knew that browsers don't have algorithms to convert domain names to IPs. It queries a DNS server.

After that, the computer remembers the IP, so next time the domain is referenced, the browser will use the cached IP.

But if there is malware on the device, can it change the cached DNS data so when a user enters https://security.stackexchange.com/, the device sends traffic to a malicious IP? How it can be done?

Or this logs are located in RAM?

1
  • 1
    You could even edit the local hosts file and do the same thing. Except that HTTPS would alert a problem because the TLS certificates would not match.
    – schroeder
    Jun 16 at 20:36
-2

I think it would be easier to change your browsers DNS address to point to a malicious domain, although I am not sure exactly where the DNS query address is stored within a browser directory.

2
  • 1
    The local DNS settings don't point to a malicious domain, but to a malicious DNS server. DNS queries are handled in the OS, not at the browser level.
    – schroeder
    Jun 17 at 12:22
  • @Jenia my comment is correcting the errors in the answer. To answer your question, I would need to remember and test how to poison the local machine's DNS cache. However, there are lots of ways to manipulate DNS maliciously.
    – schroeder
    Jun 17 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.