This article is only for Beginners – A basic guide
What is DNS?
Being a human we can not memorize billions of IP addresses (ex: 125.98.200.85). So, to make it simple DNS was introduced. DNS converts a name (ex:piratesshield.com) to a number (104.21.2.85).
DNS has a big computerized register to maintain DNS records for each server.
The Domain name service work on port 53/UDP. The latest technologies DNS over HTTPS (DOH) work on port443/TCP and DNS over TLS (DOT) works on port 853/TCP
There are four types of DNS available on the Earth,
- Root Server
- Top Level Domain (TLD) server
- Authoritative DNS
- Recursive DNS
Authoritative Vs Recursive
Which Domain Name server, I am storing and maintaining my own and original DNS record for my website is called the Authoritative Name server.
The Recursive DNS Server, Which doses not aware of my website DNS record, Sends DNS queries and cached them for some time.
A Recursive server configures with 13 Root servers to find the right authoritative server.
Root Server
In Globe, there are 13 Root servers available each one maintained by a US-based organization.
The Root server also has a DNS, which can answer the queries directly which is stored or cached inside the Root Zone.
For unknown queries which will refer to the TLD server to find the correct Authoritative server.
TLD Server
As per the above picture, the first part (com) of the website address is called Top Level Domain (TLD).
The TLD server contains all authoritative server records for each TLD (.com,.net, .in ) in different server spaces.
DNS FLOW FROM A COMPUTER

- User asks the browser to connect “www.piratesshield.com”, The browser immediately looks for the local “Host File” located in C:\Windows\System32\drivers\etc. If the DNS record is not available for the requested URL, the PC ask the DNS server (configured inside the PC’s adapter setting) to provide the IP address of website.
- If the DNS server does not know the IP address for the websie , its a Recursive Server. So, it will query the available Root Server to find the DNS record.
- The Root-Server provide TLD server address which stores the record of www.piratesshield.com.
- The Recursive sent query to TLD to provide Authoritative Server detail.
- The TLD response with the Authoritative DNS servers details where original records are stored.
- The Recursive server request the Authoritative DNS Server to provide the DNS record for www.piratesshield.com
- The IP address of URL www.piratesshield.com responded back (ref. image)
- Now the recursive server cache the DNS record and respond to browser with IP address of www.piratesshield.com
Then the PC will starts to do TCP handshake with destination webserver , then do TLS handshake – Send HTTP request ,Finally user will get full webpage on browser along with HTTP response.



Comments
Post a Comment