Sepehr Nikbin

0 %
sepehr nikbin
Developer of mobile applications and websites
  • city :
    karaj
  • age :
    24
  • mobile :
    +989377945956
  • email :
    sepehrnikbin.pg@gmail.com
  • github :
    sepehrpg
Android / java
kotlin
flutter
php
Laravel
wordpress
html
css
Javascript
Git&github
MVVM Architecture
MVP Architecture
Provider Architecture
Bloc Architecture
  • Photoshop
  • Adobe XD
  • Android studio
  • Phpstorm
  • Adobe Dreamweaver
  • Office
  • PostMan

What is DNS? | How DNS works

اشتراک گذاری 

What is DNS?

A DNS server is a computer with a database containing the public IP addresses associated with the names of the websites an IP address brings a user to. DNS acts like a phonebook for the internet. Whenever people type domain names, like Fortinet.com or Yahoo.com, into the address bar of web browsers, the DNS finds the right IP address. The site’s IP address is what directs the device to go to the correct place to access the site’s data.

Once the DNS server finds the correct IP address, browsers take the address and use it to send data to content delivery network (CDN) edge servers or origin servers. Once this is done, the information on the website can be accessed by the user. The DNS server starts the process by finding the corresponding IP address for a website’s uniform resource locator (URL).

 

How Does DNS Work?

In a usual DNS query, the URL typed in by the user has to go through four servers for the IP address to be provided. The four servers work with each other to get the correct IP address to the client, and they include:

  1. DNS recursor: The DNS recursor, which is also referred to as a DNS resolver, receives the query from the DNS client. Then it communicates with other DNS servers to find the right IP address. After the resolver retrieves the request from the client, the resolver acts like a client itself. As it does this, it makes queries that get sent to the other three DNS servers: root nameservers, top-level domain (TLD) nameservers, and authoritative nameservers.
  2. Root nameservers: The root nameserver is designated for the internet’s DNS root zone. Its job is to answer requests sent to it for records in the root zone. It answers requests by sending back a list of the authoritative nameservers that go with the correct TLD.
  3. TLD nameservers: A TLD nameserver keeps the IP address of the second-level domain contained within the TLD name. It then releases the website’s IP address and sends the query to the domain’s nameserver.
  4. Authoritative nameservers: An authoritative nameserver is what gives you the real answer to your DNS query. There are two types of authoritative nameservers: a master server or primary nameserver and a slave server or secondary nameserver. The master server keeps the original copies of the zone records, while the slave server is an exact copy of the master server. It shares the DNS server load and acts as a backup if the master server fails.
1 Comment
  • test

    greg

    8:09 pm July 6, 2023 Reply
Write a comment
The world of 0-1 is very big in programming, but I always try to be 1