27th July 2024

First Stage of the DNS Query

The basis of DNS (Domain Name System) is just like a phone book. They keep up a registry of a directory of domain names and translate them to Internet Protocol (IP) addresses. So what happens when we make a DNS query?

We can examine the DNS query in two stages. The following explanations belong to the first stage. If the DNS query fails in the first stage we pass to the second stage.

1. Is There in the Browser Cache?

When you open Google Chrome and type www.example.com, first of all, chrome looks at it DNS cache.

If you type chrome: // net-internals / # dns in the address bar, you can see and clear the current DNS cache of the browser.

Browser cache
Browser cache

 

2. Is There in the Hosts File of the Operating System?

Sometimes the IP addresses that correspond to the name must be defined as static. In this case, the IP address is entered in the hosts file in the system.

On Windows      C:\Windows\System32\drivers\etc\hosts

on Linux        /etc/hosts

 

3. Is There in the Operating System Cache?

The operating system keeps domain names in the system cache according to the value typed in the domain properties (TTL), thus providing faster resolution.

To see the TTL values in the operating system cache:

c:\>ipconfig /displaydns

ipconfig /displaydns
ipconfig /displaydns

 

To delete DNS cache :

C:\>ipconfig /flushdns

4.Is there in the ISP?

If the web address still not resolved, the DNS client sends a request to the first DNS server (195.175.39.49) on the preferred network card.

ISP
ISP

 

If there is no result of the above steps, pass to the second stage.

LEARN MORE  Monitoring Windows Security Logs with SCOM ACS

Leave a Reply

Your email address will not be published. Required fields are marked *