Domain Name System (DNS) Part 1
This is the first part Domain Name System (DNS). Click here to see part 2.
Definition
Domain Name System is:
- A distributed database implemented in a hierarchy of DNS servers, and
- An application-layer protocol running over UDP on port 53 that allows hosts to query the distributed database.
It is specified in [RFC 1034] and [RFC 1035].
How DNS Works
DNS is not just any one DNS server but a network of DNS servers. Let’s look at how the DNS resolves a domain name like salesdepartment.mycompany.com.
- Host –> Local DNS server
- Local DNS server –> Root DNS server
- Q: Do you know the IP address of salesdepartment.mycompany.com?
- A: No I don’t, but this Top Level Domain DNS server is in charge of .com top level domain.
- Local DNS server –> the .com Top Level Domain DNS server
- Q: Do you know the IP address of salesdepartment.mycompany.com?
- A: No I don’t, but this Intermediate DNS server is in charge of mycompany.com domain.
- Local DNS server –> the .mycompany.com intermediate DNS server
- Q: Do you know the IP address of salesdepartment.mycompany.com?
- A: No I don’t, but this Authoritative DNS server does.
- Local DNS server –> Authoritative DNS server
- Q: Do you know the IP address of salesdepartment.mycompany.com?
- A: Yes, it’s at
.
Note Local DNS server is genenerally not considered part of the hieararchy of DNS servers.