DNS - Quarter 3 Demo COT
DNS - Quarter 3 Demo COT
computer servers
Performance Standard: The learners shall be able to set up computer servers based on acceptable standards
and hardware
Competency : LO2. Configure Network Services
2.3. Confirm network services based on user/system requirements
Competency Code: TLE_IACSS912SUCS-IIIf-jIVa-j-38
DNS is what lets users connect to websites using domain names instead of IP addresses. Learn how DNS
works.
Learning Objectives
After reading this article you will be able to:
1. Define DNS
2. Understand how DNS works
3. Differentiate between recursive and iterative DNS lookups
4. Separate authoritative nameservers from recursive DNS resolvers
5. Explore how DNS caching works
What is DNS?
The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online
through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol
(IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.
Each device connected to the Internet has a unique IP address which other machines use to find the
device. DNS servers eliminate the need for humans to memorize IP addresses such as 192.168.1.1 (in
IPv4), or more complex newer alphanumeric IP addresses such as 2400:cb00:2048:1::c629:d7a2 (in
IPv6).
What's the difference between an authoritative DNS server and a recursive DNS resolver?
Both concepts refer to servers (groups of servers) that are integral to the DNS infrastructure, but
each performs a different role and lives in different locations inside the pipeline of a DNS query. One way
to think about the difference is the recursive resolver is at the beginning of the DNS query and the
authoritative nameserver is at the end.
It’s worth mentioning that in instances where the query is for a subdomain such as foo.example.com
or blog.cloudflare.com, an additional nameserver will be added to the sequence after the authoritative
nameserver, which is responsible for storing the subdomain’s CNAME record.
There is a key difference between many DNS services and the one that Cloudflare provides. Different
DNS recursive resolvers such as Google DNS, OpenDNS, and providers like Comcast all maintain data
center installations of DNS recursive resolvers. These resolvers allow for quick and easy queries through
optimized clusters of DNS-optimized computer systems, but they are fundamentally different than the
nameservers hosted by Cloudflare.
Cloudflare maintains infrastructure-level nameservers that are integral to the functioning of the Internet.
One key example is the f-root server network which Cloudflare is partially responsible for hosting. The F-
root is one of the root level DNS nameserver infrastructure components responsible for the billions of
Internet requests per day. Our Anycast network puts us in a unique position to handle large volumes of
DNS traffic without service interruption.
Note: A typical uncached DNS lookup will involve both recursive and iterative queries.
It's important to differentiate between a recursive DNS query and a recursive DNS resolver. The
query refers to the request made to a DNS resolver requiring the resolution of the query. A DNS recursive
resolver is the computer that accepts a recursive query and processes the response by making the
necessary requests.
In chrome, you can see the status of your DNS cache by going to chrome://net-internals/#dns.
Operating system (OS) level DNS caching
The operating system level DNS resolver is the second and last local stop before a DNS query leaves your
machine. The process inside your operating system that is designed to handle this query is commonly
called a “stub resolver” or DNS client. When a stub resolver gets a request from an application, it first
checks its own cache to see if it has the record. If it does not, it then sends a DNS query (with a recursive
flag set), outside the local network to a DNS recursive resolver inside the Internet service provider (ISP).
When the recursive resolver inside the ISP receives a DNS query, like all previous steps, it will also
check to see if the requested host-to-IP-address translation is already stored inside its local persistence
layer.
The recursive resolver also has additional functionality depending on the types of records it has in its
cache:
1. If the resolver does not have the A records, but does have the NS records for the authoritative
nameservers, it will query those name servers directly, bypassing several steps in the DNS query.
This shortcut prevents lookups from the root and .com nameservers (in our search for
example.com) and helps the resolution of the DNS query occur more quickly.
2. If the resolver does not have the NS records, it will send a query to the TLD servers (.com in our
case), skipping the root server.
3. In the unlikely event that the resolver does not have records pointing to the TLD servers, it will
then query the root servers. This event typically occurs after a DNS cache has been purged.
Website: https://www.cloudfare.com/learning/dns/what-is-dns/
Image: https://d1.awsstatic.com/Route53/how-route-53-routes-
traffic.8d313c7da075c3c7303aaef32e89b5d0b7885e7c.png