devops-exercises/exercises/dns
abregman 43d714fa12 Add a couple of AWS exercises
Questions as well were added.
2021-11-12 14:05:05 +02:00
..
README.md Add a couple of AWS exercises 2021-11-12 14:05:05 +02:00

DNS

What is DNS? What is it used for?

DNS (Domain Name Systems) is a protocol used for converting domain names into IP addresses.
As you know computer networking is done with IP addresses (layer 3 of the OSI model) but for as humans it's hard to remember IP addresses, it's much easier to remember names. This why we need something such as DNS to convert any domain name we type into an IP address. You can think on DNS as a huge phonebook or database where each corresponding name has an IP.

What is DNS resolution?

The process of translating IP addresses to domain names.

What is a DNS record?

A mapping between domain name and an IP address.

How DNS works?

In general the process is as follows:

  • The user types an address in the web browser (some_site.com)
  • The operating system gets a request from the browser to translate the address the user entered
  • A query created to check a local entry of the address exists in the system. In case it doesn't, the request is forwarded to the DNS resolver
  • The Resolver is a server, usually configured by your ISP when you connect to the internet, that responsible for resolving your query by contacting other DNS servers
  • The Resolver contacts the root nameserver (aka as .)
  • The root nameserver responds with the address of the relevant Top Level Domain DNS server (if your address ends with org then the org TLD)
  • The Resolver then contacts the TLD DNS and TLD DNS responds with the IP address that matches the address the user typed in the browser
  • The Resolver passes this information to the browser
  • The user is happy :D
Explain the resolution sequence of: www.site.com

It's resolved in this order:

  1. .
  2. .com
  3. site.com
  4. www.site.com
What types of DNS records are there?
  • A
  • PTR
  • MX
  • AAAA ...

A more detailed list, can be found here

What is a A record?

A (Address) Maps a host name to an IP address. When a computer has multiple adapter cards and IP addresses, it should have multiple address records.

What is a AAAA record?

An AAAA Record performs the same function as an A Record, but for an IPv6 Address.

What is a PTR record?

While an A record points a domain name to an IP address, a PTR record does the opposite and resolves the IP address to a domain name.

What is a MX record?
MX (Mail Exchange) Specifies a mail exchange server for the domain, which allows mail to be delivered to the correct mail servers in the domain.
Is DNS using TCP or UDP?

DNS uses UDP port 53 for resolving queries either regular or reverse. DNS uses TCP for zone transfer.

True or False? DNS can be used for load balancing

True.

Which techniques a DNS can use for load balancing?
What is DNS Record TTL? Why do we need it?
What is a zone? What types of zones are there?