You can view the contents of the DNS cache using the command line (in Windows) or the terminal (in MacOS). The DNS cache contains information about sites that you have visited, but any error in this cache may cause such sites not to open.
Press Win+R and type “cmd”. In the command line window that opens, type “ipconfig /displaydns” to see all the entries in the cache.
Usually the output does not fit in the window, so you can use the utility “more”, the command will then look like “ipconfig /displaydns | more”. Scroll through the output by pressing the spacebar.
You can also save the output to a new file using the command “ipconfig /displaydns > D:\cache.txt”, where the last parameter is an arbitrary path to the file where the output will be redirected to.
If you encounter browser errors, clear the DNS cache to resolve them. To clear the contents of the DNS cache, type “ipconfig /flushdns” at the command line. Also, clearing the DNS cache will speed up the system because unnecessary data will be removed