K
K
kxooll2018-06-28 12:41:56
Domain Name System
kxooll, 2018-06-28 12:41:56

How to intercept the DNS of the site that the user has visited?

Hello. Let's say a console application is running on a PC, the user is surfing the Internet at that time. How to get the ip and dns of the sites he visits?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Kuznetsov, 2018-06-28
@kxooll

DNS for the site is used by the system. Those DNS settings that are installed on the machine with the site you will not get just like that, without having access to it.
How to get the IP of a site - you can get it by name.
It is more interesting to understand exactly what the user is visiting. Sniffer utilities are needed here.
A similar question was discussed on stackoverflow.com - https://stackoverflow.com/questions/16767562/websi...
Also, you can read the article on codeproject.com - https://www.codeproject.com/Articles/17031/ A Network...

S
SagePtr, 2018-06-28
@SagePtr

Under Windows:
ipconfig /displaydns

R
Ruslan Fedoseev, 2018-06-28
@martin74ua

what is a site's DNS?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question