What is DNS?
How is DNS formed and how does it work?
For example, when you open the terminal and write the following command
ping domain name
The ping sends a request to the DNS, and the DNS sends you the IP of that domain
How to use the nslookup command?
then it will work for you like this
DNS will bring you the site
◇ How to use dig command?
dig the domain name
How is DNS exploited in Hacking ?
For example, you found the DNS and did not find a loophole in the domains. The hacker checks the DNS if there are gaps in it, where he can penetrate them and control all sites and all requests. For example, he can put the name of his site instead of the google site.