DNS - Domain Name System in Computer Networks

Engineering Funda
7 Aug 202320:22

Summary

TLDRThis educational video delves into the Domain Name System (DNS), explaining its fundamental role in translating domain names into IP addresses, which is essential for internet communication. The host illustrates DNS with practical examples using Wireshark, discusses the structure of domain names including generic and country domains, and clarifies hierarchical access. Further, the video explores DNS database organization and the two primary methods of address resolution: iterative and recursive, with an emphasis on the efficiency of the recursive method. The content is enriched with demonstrations of NS lookup commands and insights into DNS entries, TTL values, and the distributed database approach involving root, name, and host servers.

Takeaways

  • ๐ŸŒ DNS (Domain Name System) is used to get IP addresses from domain names, facilitating communication between computers on a network.
  • ๐Ÿ” The video demonstrates DNS in action using Wireshark software to show how a DNS query is sent and a response is received, retrieving an IP address from a domain name.
  • ๐Ÿ›๏ธ Domain names are categorized into generic domains (like .com, .org, .edu) and country domains (like .in for India, .jp for Japan), each serving different purposes and regions.
  • ๐Ÿ“š The hierarchical structure of domain names includes root domain, top-level domain (TLD), second-level domain, and subdomains, which are crucial for understanding how DNS organizes and resolves names.
  • ๐Ÿ“ˆ DNS uses a distributed database approach with three main levels: root DNS servers, name servers, and host servers. This structure helps manage and resolve domain names efficiently.
  • ๐Ÿ”„ IP addresses are dynamic and can change over time, which is why DNS entries include a Time-To-Live (TTL) field to indicate how long the IP and domain name pairing remains valid.
  • ๐Ÿ”Ž The NSLOOKUP command is used to query DNS and retrieve IP addresses for a given domain name, demonstrating the practical application of DNS in accessing websites.
  • ๐Ÿ”„ DNS resolution can occur through two methods: iterative, where the local server makes multiple requests to different servers to resolve the domain name, and recursive, where the local server delegates the resolution process to a DNS server that completes the task.
  • ๐Ÿ•’ The time taken to resolve a domain name and retrieve an IP address depends on the method used, with recursive resolution generally being faster than iterative resolution.
  • ๐Ÿ’ก The video emphasizes the importance of understanding DNS, its structure, and resolution methods, especially for those preparing for competitive examinations or needing a deep dive into network communication.

Q & A

  • What is the primary function of DNS?

    -The primary function of DNS (Domain Name System) is to translate domain names, which are easy for humans to remember, into IP addresses that computers use to identify each other on the network.

  • What are the two types of IP addresses mentioned in the script?

    -The two types of IP addresses mentioned are IPv4 and IPv6.

  • How does the DNS protocol operate?

    -DNS protocol operates using a client-server model where the client sends a query to the DNS server, which then responds with the requested IP address associated with the domain name.

  • What is a practical example of using DNS mentioned in the script?

    -A practical example given in the script is using Wireshark software to observe DNS requests and responses, such as getting the IP address for 'grammarly.com'.

  • What are the two general categories of domain names discussed in the script?

    -The two general categories of domain names discussed are generic domain names (like .com, .org, .edu) and country domain names (like .in for India, .jp for Japan).

  • How does the script explain the hierarchical access to domain names?

    -The script explains hierarchical access to domain names through a practical example, showing how domain names are structured from the root domain to top-level domains, second-level domains, and subdomains.

  • What is the purpose of the TTL field in DNS entries?

    -The TTL (Time To Live) field in DNS entries specifies the duration for which the IP address and domain name are considered validly associated with each other before they become invalid and need to be refreshed.

  • What is the difference between iterative and recursive methods of address resolution in DNS?

    -In iterative address resolution, the client makes multiple requests to different DNS servers until it gets the IP address, while in recursive resolution, the local DNS server makes all the necessary requests on behalf of the client and provides the final IP address.

  • What does the script mean by 'root DNS server', 'name server', and 'host server' in the context of DNS database organization?

    -In the context of DNS database organization, 'root DNS server' refers to the top-level servers that manage the DNS hierarchy, 'name server' refers to the servers that handle specific top-level domains (like .com, .org), and 'host server' refers to the servers that host the actual websites or services associated with domain names.

  • How does the script illustrate the dynamic nature of IP addresses?

    -The script illustrates the dynamic nature of IP addresses by explaining that IP addresses can change over time and that recently accessed domains are stored in cache entries for faster access, as they do not change immediately.

  • What command is used in the script to look up IP addresses associated with domain names?

    -The script uses the 'NS lookup' command to find the IP addresses associated with domain names.

Outlines

00:00

๐ŸŒ Understanding DNS and IP Address Resolution

This paragraph introduces the Domain Name System (DNS) and its role in resolving domain names to IP addresses. The speaker plans to cover the basics of DNS, demonstrate how DNS works using Wireshark software, discuss generic and country domain names, explain the hierarchical structure of domain names, describe the organization of the DNS database, and show how DNS entries are provided. The paragraph also mentions two methods of address resolution: iterative and recursive, which will be discussed with practical scenarios. The importance of IP addresses (both IPv4 and IPv6) in computer network communication is highlighted, emphasizing that communication is impossible without them.

05:01

๐Ÿ” DNS Query Process and Domain Name Classification

The speaker explains the process of how a DNS query works, using the example of accessing a website. They discuss the dynamic nature of IP addresses and how recently accessed domains are stored in cache for faster access. The TTL (Time To Live) field is introduced, which determines the validity period of the IP-address and domain name pairing. The paragraph also covers the use of the NS lookup command to retrieve IP addresses using DNS protocol. Additionally, domain names are classified into generic domains (like .com, .org, .edu) and country domains (like .in, .jp, .uk), with examples provided to illustrate the point.

10:04

๐Ÿ“š Hierarchical Structure of Domain Names

This paragraph delves into the hierarchical structure of domain names, explaining the concept of root domains, top-level domains (TLDs), second-level domains, and subdomains. Examples are given to illustrate how these levels are organized, such as 'engineeringfunder.co.in' and 'en.wikipedia.org'. The importance of understanding this hierarchy is emphasized, especially in the context of competitive examinations where questions might be asked about the different levels of a domain name.

15:04

๐ŸŒ DNS Database Organization and Address Resolution

The speaker discusses the organization of the DNS database, highlighting the three levels: root DNS servers, name servers, and host servers. The role of each level in the DNS hierarchy is explained, with an emphasis on the importance of having multiple root servers to avoid single points of failure. The paragraph also explains the process of address resolution, contrasting the iterative and recursive methods used by computers to obtain IP addresses through DNS. The iterative method involves multiple requests to different servers, while the recursive method involves a single request that follows the DNS hierarchy to retrieve the IP address.

20:07

โฑ Time Efficiency in DNS Resolution Methods

In the final paragraph, the speaker concludes by discussing the time efficiency of the DNS resolution methods. They note that the iterative method generally takes more time due to the multiple steps involved in querying different servers, while the recursive method is typically faster as it involves a single request that follows the DNS hierarchy. The speaker invites viewers to share their thoughts in the comments and thanks them for watching the video.

Mindmap

Keywords

๐Ÿ’กDNS

DNS stands for Domain Name System, which is the phonebook of the internet. It translates human-friendly domain names into IP addresses that computers use to identify each other on the network. In the video, DNS is the central theme, as it is used to explain how to retrieve an IP address from a domain name, facilitating communication between devices.

๐Ÿ’กDomain Name

A domain name is a human-readable address on the internet, like 'google.com'. It is used to access websites and services. The video script explains that domain names are crucial for identifying websites and that the DNS is used to find the corresponding IP address for a given domain name.

๐Ÿ’กIP Address

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. The script mentions two types of IP addresses: IPv4 and IPv6. The video demonstrates how DNS is used to resolve domain names into IP addresses, which are necessary for network communication.

๐Ÿ’กWireshark

Wireshark is a network protocol analyzer used for network troubleshooting and analysis. In the context of the video, Wireshark software is used to demonstrate a practical example of how DNS queries and responses work to resolve domain names into IP addresses.

๐Ÿ’กGeneric Domain

A generic domain, as explained in the script, refers to a top-level domain (TLD) that is not specific to any country, such as .com, .org, .edu, and .net. These are used for various purposes, including commercial, organizational, and educational entities.

๐Ÿ’กCountry Domain

Country domains are top-level domains that represent specific countries, such as .in for India, .jp for Japan, and .uk for the United Kingdom. The video script discusses how these domains are used to signify the geographical or national affiliation of a website or service.

๐Ÿ’กHierarchical Access

Hierarchical access in the context of DNS refers to the structured way domain names are organized and resolved. The script uses a practical example to illustrate how domain names are broken down from the root domain to the top-level domain, second-level domain, and subdomains.

๐Ÿ’กDNS Database Organization

The DNS database organization is a distributed system that involves root DNS servers, name servers, and host servers. The video script explains that this hierarchical structure is essential for the efficient resolution of domain names to IP addresses across the globe.

๐Ÿ’กTTL

TTL stands for Time To Live, which is a field in DNS records that indicates the duration for which a record is valid. The script mentions TTL to explain how recently accessed domains are stored with a validity period, allowing for faster access before they become invalid.

๐Ÿ’กNS Lookup

NS Lookup is a command used to obtain the IP address associated with a domain name using the DNS protocol. The video script provides examples of using NS Lookup to query for the IP addresses of google.com and yahoo.com, demonstrating how DNS is used in practice.

๐Ÿ’กIterative Method

The iterative method is one of the two methods for address resolution explained in the script. It involves a series of requests from a local server to various levels of DNS servers until the correct IP address is obtained. The video illustrates this process with a practical example, showing how multiple iterations may be required.

๐Ÿ’กRecursive Method

The recursive method is an alternative approach to address resolution where a local server makes a single request to a root DNS server, which then handles all further queries and responses to ultimately provide the IP address. The script contrasts this method with the iterative method, noting that it may be faster due to fewer interactions required.

Highlights

Introduction to DNS (Domain Name System) and its purpose in translating domain names to IP addresses.

Explanation of the basics of DNS with a practical example using Wireshark software.

Discussion on the two types of IP addresses: IPv4 and IPv6.

Demonstration of how DNS is used to communicate with websites like Google.

Description of DNS using the UDP protocol in a practical scenario.

Introduction to the concept of domain names and their importance in internet communication.

Explanation of generic and country domain names and their classifications.

Practical example illustrating the hierarchical access to domain names.

Discussion on DNS database organization and how DNS entries are provided.

Introduction to address resolution methods: iterative and recursive.

Practical scenario demonstrating DNS protocol frames for IP address retrieval.

Explanation of how IP addresses are dynamic and change over time.

Description of how recently accessed domains are stored for faster access.

Introduction to the NS lookup command and its use in DNS protocol.

Practical demonstration of NS lookup for domain names like Google and Yahoo.

Explanation of the hierarchical structure of domain names with examples.

Discussion on the three levels of DNS database organization: root DNS server, name server, and host server.

Practical example of how DNS entries are stored with TTL values.

Detailed explanation of the iterative method in DNS address resolution.

Detailed explanation of the recursive method in DNS address resolution.

Conclusion on the importance of understanding DNS for internet communication.

Transcripts

play00:01

Hello friends welcome to engineering

play00:04

Wonder family in this video I am going

play00:06

to explain you DNS domain name system

play00:09

and to understand DNS let me show you

play00:12

how many things that I'm going to cover

play00:13

in this video see first I'll be

play00:15

discussing about basics of DNS here I'll

play00:18

give you one practical example in which

play00:19

I'll show you in my computer with the

play00:21

use of Wireshark software in which I'll

play00:24

show you how DNS that is used to get IP

play00:28

address from domain names right after

play00:31

that I'll explain you how domain names

play00:34

are there like generic domain and

play00:36

Country domains that is how two general

play00:38

categories are there then I'll be

play00:41

discussing about hierarchical access to

play00:43

domain name that I'll explain You by One

play00:45

practical example like how hierarchical

play00:47

approach is there with domain name then

play00:50

I'll be showing you how DNS database

play00:52

organization is there and how DNS

play00:55

entries are provided so both of these

play00:58

things that I'll be showing you by one

play00:59

practical scenario and at last I'll be

play01:02

showing you two methods for address

play01:04

resolution so address resolutions using

play01:08

iterative method and address resolution

play01:11

using recursive method that I am going

play01:12

to discuss that in this video along with

play01:14

one practical scenario so let us try to

play01:16

understand first how Basics are there

play01:18

with domain name

play01:20

system

play01:22

so domain name system that we use it to

play01:25

get IP address from domain names so

play01:27

first of all you should know what is IP

play01:28

address there are two types of IP

play01:30

address ipv4 and IPv6 right and with the

play01:35

use of IP address only one can

play01:37

communicate with another computer

play01:39

without IP address we cannot communicate

play01:41

on computer network right so to get IP

play01:45

from domain name

play01:46

we will be using DNS so what is doing

play01:49

name means google.com that is one domain

play01:53

name so to have a communication with

play01:55

Google you should be having IP of Google

play01:57

to get IP of Google we will be using DNS

play02:00

right so when you write

play02:03

www.google.com you are writing domain

play02:05

name over here on web browser right you

play02:08

don't have IP of Google but to get IP of

play02:11

Google first DNS frame that is getting

play02:13

forwarded and then DNS reply will come

play02:16

by which user will get to know IP of

play02:19

Google and now user can communicate with

play02:23

Google so before communication user

play02:26

should be having IP address to get IP

play02:28

address DNS is used right

play02:32

DNS is using UDP protocol so let me show

play02:35

you that by one practical scenario so

play02:37

that will give you more clarity so let

play02:38

me take you to my computer screen here

play02:40

on my computer screen you see here I'll

play02:43

be showing you DNS protocol frame you

play02:46

see this is first one and this is second

play02:48

one first one is request and second one

play02:51

is reply right first one is request you

play02:55

can say query and second one is reply

play02:57

now see what I was been doing I was

play03:00

trying to search something on grammarly

play03:04

now I I was not having I was not having

play03:07

IP of grammarly right so you see

play03:10

to access grammarly I just need to have

play03:12

IP

play03:13

to get IP I am forwarding query

play03:17

so this is my IP and this is IP of my

play03:20

router

play03:21

right so I'm sending frame to my router

play03:24

obviously I can communicate with router

play03:25

only right my router is communicating to

play03:28

the internet now see this my IP is

play03:32

sending request to my router regarding

play03:35

IP of grammarly that is BNS query you

play03:38

see here domain name system query that

play03:40

is written over here

play03:41

right and see this domain name system

play03:44

that is implemented over

play03:47

UDP

play03:47

and UDP is implemented here over ipv4

play03:50

and that is implemented over ethernet

play03:53

over here right and then we are having

play03:55

frame

play03:56

so this is my request you see here query

play03:58

or request that you can say that is

play04:00

first frame

play04:01

after that you see this IP which is my

play04:05

IP that is destination IP means now my

play04:08

router's IP which is Source IP now that

play04:11

is forwarding frame to me that is DMS

play04:14

that is DMS response so by this dmse

play04:18

response now I am getting IP of

play04:21

grammarly right now I am getting IP of

play04:24

grammarly now once I am having IP of

play04:27

grammarly I can communicate with

play04:28

grammarly right so see to get IP of

play04:32

grammarly I am sending frame that is DNS

play04:36

frame that is implemented over udb

play04:39

protocol remember this right

play04:42

so now I think you are having idea about

play04:44

what what is that which we are doing

play04:45

right

play04:46

so practically DNS protocol that we use

play04:49

it to get IP address from domain name

play04:52

right from domain name you will be

play04:55

trying to get IP address right

play04:59

once you have IP address you can

play05:01

communicate so you can have your own

play05:03

domain name as my website is there you

play05:05

should know that website name is

play05:09

available.engineeringfunder.co.in so

play05:11

this is my domain name right now as if

play05:14

you want to access this website first

play05:15

you will be forwarding DNS free

play05:18

along with DNS protocol so that will be

play05:21

request then you will get reply in that

play05:24

reply you will be getting IP of my

play05:26

website once you have IP of my website

play05:28

you can communicate on my website means

play05:30

you can access my website right see IP

play05:33

addresses are Dynamic you should know

play05:35

that dynamic means with respect to time

play05:38

IP will change before two days when I

play05:42

was watching my IP of my computer that

play05:44

was different compared to today right

play05:46

so IP address will change with respect

play05:48

to time right IP addresses are Dynamic

play05:51

that will change with respect to time

play05:53

recently access the domain are stored in

play05:56

entries for faster access

play05:58

to The Domain so recently accessed

play06:01

domains are stored on your system right

play06:04

and based on that you can have faster

play06:06

access the reason is every time you

play06:08

cannot ask for domain name and all those

play06:11

things right do me name that you are

play06:12

having but every time you cannot ask for

play06:14

IP address

play06:16

one time you can ask IB address once you

play06:18

have it you just store it in the entries

play06:19

it will not change immediately right it

play06:22

will take some time so how entries are

play06:24

stored let me show you that over here

play06:26

see first there will be domain name

play06:28

domain name means you can have Google

play06:30

Amazon or my website that is domain name

play06:33

that we are storing with respect to IP

play06:35

address and that IP address that we get

play06:38

it with the use of DNS protocol

play06:41

and along with IB there will be validity

play06:43

or you can say TTL field so that TTL

play06:46

field that will show you for how much

play06:48

time this IP and domain name are

play06:52

validated with each other

play06:54

after this time both of these entries

play06:56

that will get invalid remember this

play06:59

right

play07:01

see one more command is there that is NS

play07:04

lookup by which you can get to know like

play07:06

how we can get IP address and see this

play07:10

NS lookup that is inherently using DNS

play07:13

protocol right let me show you that on

play07:15

my computer screen so that will gives

play07:17

you more regularity

play07:18

so Here If You observe this is command

play07:22

prompt in which I have written NS lookup

play07:25

space google.com

play07:28

so see this server means my Wi-Fi is my

play07:35

WiFi is initiating that communication

play07:37

which is asking for IP address of Google

play07:41

so you see now name that is google.com

play07:44

that is having IP address that is this

play07:46

this is IPv6 address and this is ipv4

play07:50

address let me show you one more example

play07:52

NS

play07:53

look up

play07:56

space if I write yahoo.com

play08:00

now you see how many how many IPS are

play08:04

available with this so that many IPv6

play08:06

addresses are available with Yahoo and

play08:08

these are ipv4 addresses are available

play08:11

with Yahoo with which my computer can

play08:13

communicate to yahoo.com and to get this

play08:17

IB DNS protocol that we are using right

play08:21

so this is how things are there so I

play08:24

think now you are having idea about how

play08:25

NS lookup is there and how DNS that is

play08:29

working right now let me give bit

play08:33

clarity about how domain names are

play08:36

classified

play08:37

see in general you can say generic

play08:40

domain and Country domain that is how it

play08:42

is classified these are main domain that

play08:44

you can see right generic means.com dot

play08:49

org.edu.net dot mil that is how generic

play08:51

domains are there.com that is used for

play08:54

commercial

play08:55

domains.org is used for organizations

play08:58

dot edu that is used for educational

play09:01

institutions dot net initially that was

play09:04

used for Internet service provider only

play09:06

but nowadays some companies are even

play09:08

using this dot mil that is used for

play09:11

military organizations nowadays probably

play09:15

with rare use that is there right

play09:18

country domains are there country

play09:20

domains like with India dot in is there

play09:23

like my website dot Co dot in So Last At

play09:27

Last dot in is there that belongs to

play09:29

country India at last if dot JP is there

play09:32

that belongs to Japan at last if dot UK

play09:36

is there that belongs to United Kingdom

play09:37

at last if dot d e is there that belongs

play09:40

to Germany right so that is how country

play09:43

domains are there generic domains are

play09:46

there right now let me explain you how

play09:49

hierarchical axis that is there with

play09:51

domain

play09:52

so first thing that you need to

play09:54

understand that is this dot this dot

play09:57

explains root domain this dot that

play10:00

explains root domain then top level

play10:04

domain will be there at second level

play10:05

means after root domain there will be

play10:07

top level domain top level domains are

play10:10

like dot in dot org dot

play10:14

edu.com.net.uk right so those are top

play10:17

level domains

play10:19

right after that there will be second

play10:21

level domains second level do beans are

play10:24

like dot Co dot AC you might have seen

play10:28

that even right like my website that is

play10:29

dot Co dot in

play10:31

there can be dot AC dot in so these are

play10:35

second level domain Wikipedia is also

play10:37

second level domain

play10:39

and then there will be Sub doming sub

play10:42

domain could be like

play10:44

en example let me show you one practical

play10:47

example so that will give you more

play10:49

clarity right

play10:50

like you see

play10:52

if I write

play10:54

engineering Funda if I write engineering

play10:58

panda

play11:01

so that is my that that is my sub domain

play11:04

the reason is I I am taking it from

play11:08

GoDaddy right so GoDaddy have provided

play11:10

this sub domain to me

play11:12

and then there is dot o

play11:15

so dot Co that is second level domain

play11:18

and then there is dot in right

play11:22

so see this is my

play11:24

in total

play11:25

domain name

play11:27

where this dot this first Dot that is

play11:30

domain root

play11:32

then dot in is there that is top level

play11:35

domain then dot Co is there that is

play11:37

second level domain and then sub domain

play11:40

that is engineering conduct let me give

play11:43

you one another example

play11:45

see in another example what I'll be

play11:47

doing is I'll be writing

play11:49

e n

play11:51

dot Wikipedia

play11:54

Dot

play11:57

org

play11:58

right so now if You observe here this

play12:01

first Dot this first dot that is root

play12:04

domain then dot org

play12:06

that is top level domain and then see

play12:09

Wikipedia that is second level domain

play12:11

and then e n en stands for English so

play12:14

that is my sub Domi with Wikipedia and

play12:17

then one can communicate with host

play12:20

system right so see this is how this is

play12:23

how two examples that I have converted

play12:25

to you so you should know how

play12:26

hierarchical axis that is happening

play12:29

right

play12:30

so root domain is there after that top

play12:32

level domain that is how this top level

play12:34

domains are there then second level

play12:35

domain like dot Co dot AC those are

play12:39

second level domain and then e an

play12:41

example that is how some sub domains are

play12:43

there right sometimes like my website is

play12:46

sub domain so sometimes what happens you

play12:49

know like in competitive examination

play12:50

they may give you uh that domain name

play12:53

and in domain name there can be equation

play12:57

like what is sub domain with that domain

play12:59

name what is second level do mean with

play13:01

that domain name what is top level

play13:02

domain with that domain name see that

play13:04

kind of questions may come in

play13:06

competitive examination so for that you

play13:07

should be ready right I think now these

play13:10

two examples are sufficient to

play13:11

understand that

play13:13

now let me explain you how DNS database

play13:16

organization is there

play13:18

see there are three levels of

play13:20

organization that is distributed

play13:22

database approach that you should know

play13:25

right first of all you need to remember

play13:27

these three names that is quite easy one

play13:30

see root DNS server after that the name

play13:33

server and after that host server that

play13:35

is how it is there right root DNS server

play13:38

then name server and then host server

play13:42

there are 13 root servers that is

play13:45

available in the world

play13:46

and why there are 13 root servers the

play13:49

reason is single point failure is not

play13:52

allowed right like you might have seen

play13:55

tsunami have came to Japan now if root

play13:58

DNS server that is there in Japan and if

play14:01

single point failure is happening then

play14:02

entire world's internet will go down

play14:05

So to avoid those situations right now

play14:08

there are 13 root level servers that is

play14:12

available in the globe so single point

play14:14

failure will not happen right now root

play14:17

DNS server

play14:19

after that there will be name server

play14:22

name server is like.com dot in dot org

play14:26

dot net right so those are name servers

play14:30

after that there will be host servers

play14:32

post servers are like YouTube servers

play14:35

maybe their Google server maybe their

play14:36

Yahoo server may be their Amazon server

play14:39

may be there so those are host servers

play14:41

right so DNS database organization that

play14:45

is happening like this root DNS server

play14:47

name server and host server always

play14:50

remember this sequence the reason is

play14:52

always DNS is DNS is patching IP in this

play14:57

hierarchy only right I'll show you that

play15:00

by one practical example but right now

play15:02

consider this hierarchy

play15:04

see DNS entry that I have already told

play15:06

you once you take IP address from DNS

play15:10

there will be entry that entry will be

play15:12

asked for a domain name then IP address

play15:14

and then validity value it remains TTL

play15:17

that explains you for this much duration

play15:19

only this IP and this domain name those

play15:21

are actively attached to each other

play15:24

after that that will get invalid right

play15:26

so that is how DNS entries that is

play15:29

getting stored and based on that only we

play15:31

are communicating on computer network

play15:33

now very interesting part that I am

play15:35

going to explain is that is address

play15:37

resolution means how

play15:40

computer is taking IP address with the

play15:43

use of DNS you see here one computer

play15:46

that I have shown now this computer is

play15:48

requesting for let us say any website

play15:51

right so obviously to access website

play15:55

with the use of DNS first what we will

play15:57

be taking IP address of that website

play16:00

right but how there are two ways one is

play16:03

iterative and second is recursive

play16:06

let me explain you first iterative

play16:08

method see what we do is this computer

play16:10

is requesting for website that will go

play16:13

to this router like I am having my

play16:15

computer in front of me that is

play16:17

connected with my router so obviously I

play16:20

can request to my router only now my

play16:22

router will request it to uh exterior

play16:26

environment right so this is local

play16:28

server which is my router which is

play16:30

connected to root DNS server

play16:33

now you see this router will be

play16:35

requesting root DNS server regarding

play16:37

regarding IP so this root DNS server is

play16:41

saying what root DNS server is saying

play16:43

you should go to name server how this

play16:47

root DNS server that will give this IP

play16:50

this IP in feedback you see this IP in

play16:53

feedback so now this IP that is there

play16:56

with this local server so it will send

play16:58

request to this name server now this

play17:00

name server will give this ipe to this

play17:05

local router so now this IP now that

play17:08

came to this local router now it will

play17:09

request to host server now host server

play17:12

will say okay this is my IP only you can

play17:14

communicate with me over here right so

play17:17

if You observe here we are having

play17:18

iteration three iterations are there

play17:21

first iteration that have happened with

play17:23

root DNS server root DNS server have

play17:25

given address of name server like see

play17:29

root DNS server that is having that is

play17:32

having database of everything right like

play17:35

root DNS server is saying you should go

play17:38

to.com so.com that is there with name

play17:40

server I have told you see

play17:42

this name server that is that could

play17:44

be.com dot in dot org.net right

play17:48

so root DNS server that is giving

play17:51

approach to name server so name server

play17:54

again is giving approach to host server

play17:57

so in iterations that is happening that

play17:59

is one way by which this DNS will give

play18:03

IP of website to host right now second

play18:08

approach is quite interesting you see

play18:10

what is happening when this host is

play18:11

requesting for websites IP with the use

play18:14

of DNS at the time this local server is

play18:17

requesting this DNS server now this DNS

play18:20

server is not having idea about what is

play18:22

the IP so what it does is now it will

play18:24

not give feedback directly over here

play18:26

what it does is it will ask to name

play18:28

server then name server will ask you to

play18:31

it to host a server now host server will

play18:34

deliver exact IP to name server now name

play18:36

server will deliver that IP to root DNS

play18:38

now that IP will come over here

play18:41

so here local server is not doing

play18:44

iterations like this local server is

play18:47

just asking it to root DNS server root

play18:50

DNS server is approaching in this

play18:52

hierarchy and it is taking that IP from

play18:55

host server and it is giving it to this

play18:57

local server now this local server will

play18:59

give it to this host right so this is

play19:01

recursive method right so in recursive

play19:05

method local server that will approach

play19:07

once only while in in iterative method

play19:11

local server will approaches

play19:14

many times that depends on how many

play19:16

iterations are happening here I have

play19:18

shown you pre-level hierarchy right

play19:20

there can be five level hierarchy

play19:22

obviously that is always possible right

play19:24

so that is that that is possible over

play19:27

here in iterative method

play19:29

so this is our address resolution that

play19:31

is happening in short you just need to

play19:34

understand one thing as if this computer

play19:36

is writing Google

play19:39

dot com then this is domain now this

play19:43

computer wants IP so this request will

play19:46

be given to local server now it will

play19:48

request like this or it may request like

play19:51

this right that depends on the approach

play19:53

there can be iterative method or there

play19:55

can be recursive method right at last

play19:58

this computer will get what it will get

play20:00

this IP right at last

play20:03

but how much time how long it will take

play20:06

that depends on which method that we use

play20:08

in iterative method it will take bit

play20:10

more time in the recursive method it

play20:12

will take bit less time that is how

play20:15

things are there if anything that you

play20:17

would like to share please note it down

play20:18

in comment section I'll be happy to help

play20:20

you thank you so much for watching this

play20:21

video

Rate This
โ˜…
โ˜…
โ˜…
โ˜…
โ˜…

5.0 / 5 (0 votes)

Related Tags
DNS BasicsDomain NamesIP ResolutionWiresharkInternet ProtocolIPv4IPv6Web AccessTechnical TutorialDNS HierarchyAddress Lookup