DNS Servers contains DNS Records
DNS Server Types
- DNS Resolver - answers DNS queries by querying the High-Level Domain Servers and Authoritative Name Servers itself
- High-Level Domain Servers - define which DNS Server is the Authoritative Name Server for a specific domain name
- Root Domain Servers -
- Top-Level Domain Servers -
- Authoritative Name Servers (Name Server) - holds the up-to-date information for that hostname/domain name
|
DNS Server Type |
Description |
|---|---|
|
DNS Resolver |
|
|
Root Domain (RD) Server |
|
|
Top-Level Domain (TLD) Server | |
|
Authoritative Name Server Name Server (NS) |
|
How a DNS Query Resolves
The DNS Resolver is pre-configured with a set of 13 root server IP addresses which are permanently assigned. The resolving process for “example.com” would be as follows:
- DNS Resolver randomly selects one root server from the pre-configured root servers list and queries it.
- the Root Servers only maintain list of top level domain (TLD) with NS records. So, the response for the query will list out NS records for “com” TLD.
- the Resolver will read the NS records from the response and randomly pick one and repeat the same query.
- The “com” TLD server maintains list of NS records for the next level i.e. “example.com” and returns a new set of NS records which host the “example.com” zone.
- The resolver will then select a NS record and repeat the same query.
- The “example.com” DNS server which is hosting the zone will have the IP address configured for the zone as A record and will return the record as the final response.
Server Implementations
DNS Domain Servers Hierarchy
-model/7---application-layer/domain-name-system/service-(dns)/dns-server-(dns-resolver---root-server---top-level-server---authoritative-server)/protocol-hostname-domainname-tld-file-path.png)
-model/7---application-layer/domain-name-system/service-(dns)/dns-server-(dns-resolver---root-server---top-level-server---authoritative-server)/dns-schema.png)
DNS Query Types
Recursive DNS Query
|
Iterative DNS Query
|
for more details of DNS queries
-model/7---application-layer/domain-name-system/service-(dns)/dns-server-(dns-resolver---root-server---top-level-server---authoritative-server)/dns-recursive-query.png)
-model/7---application-layer/domain-name-system/service-(dns)/dns-server-(dns-resolver---root-server---top-level-server---authoritative-server)/dns-iterative-query.png)