DNS Flashcards

1
Q

Which record types does route 53 support ?

A
A (address record)
AAAA (IPv6 address record)
CNAME (canonical name record)
CAA (certification authority authorization)
MX (mail exchange record)
NAPTR (name authority pointer record)
NS (name server record)
PTR (pointer record)
SOA (start of authority record)
SPF (sender policy framework)
SRV (service locator)
TXT (text record)
\+ alias records,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is DNS ?

A

DNS is a global system for translating IP addresses to human-readable domain names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How DNS works ?

A

When a user tries to access a web address like “example.com”, their web browser or application performs a DNS Query against a DNS server, supplying the hostname.
The DNS server takes the hostname and resolves it into a numeric IP address, which the web browser can connect to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are doing DNS Resolver ?

A

DNS Resolver is responsible for checking if the hostname is available in local cache, and if not, contacts a series of DNS Name Servers, until eventually it receives the IP of the service the user is trying to reach, and returns it to the browser or application. This usually takes less than a second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many DNS query types exist ?

A

There are three DNS query types :

  • Recursive query
  • Iterative query
  • Non-recursive query
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a recursive query ?

A

In a recursive query, a DNS client provides a hostname, and the DNS Resolver “must” provide an answer—it responds with either a relevant resource record, or an error message if it can’t be found. The resolver starts a recursive query process, starting from the DNS Root Server, until it finds the Authoritative Name Server (for more on Authoritative Name Servers see DNS Server Types below) that holds the IP address and other information for the requested host

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Iterative query ?

A

In an iterative query, a DNS client provides a hostname, and the DNS Resolver returns the best answer it can. If the DNS resolver has the relevant DNS records in its cache, it returns them. If not, it refers the DNS client to the Root Server, or another Authoritative Name Server which is nearest to the required DNS zone. The DNS client must then repeat the query directly against the DNS server it was referred to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Non-recursive query ?

A

A non-recursive query is a query in which the DNS Resolver already knows the answer. It either immediately returns a DNS record because it already stores it in local cache, or queries a DNS Name Server which is authoritative for the record, meaning it definitely holds the correct IP for that hostname. In both cases, there is no need for additional rounds of queries (like in recursive or iterative queries). Rather, a response is immediately returned to the client.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many types of DNS servers ?

A

3 Types of DNS Servers :

  • DNS Resolver
  • DNS Root Server
  • Authoritative root server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a DNS Resolver

A

A DNS resolver (recursive resolver) is designed to receive DNS queries, which include a human-readable hostname such as “www.example.com”, and is responsible for tracking the IP address for that hostname.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Root servers ?

A

The root server is the first step in the journey from hostname to IP address. The DNS Root Server extracts the Top Level Domain (TLD) from the user’s query — for example, www.example.com — and provides details for the .com TLD Name Server. In turn, that server will provide details for domains with the .com DNS zone, including “example.com”.

There are 13 root servers worldwide, indicated by the letters A through M, operated by organizations like the Internet Systems Consortium, Verisign, ICANN, the University of Maryland, and the U.S. Army Research Lab.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is authoritative server ?

A

Higher level servers in the DNS hierarchy define which DNS server is the “authoritative” name server for a specific hostname, meaning that it holds the up-to-date information for that hostname.

The Authoritative Name Server is the last stop in the name server query—it takes the hostname and returns the correct IP address to the DNS Resolver (or if it cannot find the domain, returns the message NXDOMAIN).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A Record ?

A

Address Mapping record (A Record)—also known as a DNS host record, stores a hostname and its corresponding IPv4 address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

AAAA Record ?

A

Stores a hostname and its corresponding IPv6 address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CNAME Record

A

Points at other URLs => Can be used to alias a hostname to another hostname.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

MX Record

A

Specifies an SMTP email server for the domain, used to route outgoing emails to an email server.

17
Q

NS Record

A

Specifies that a DNS Zone, such as “example.com” is delegated to a specific Authoritative Name Server, and provides the address of the name server.

18
Q

PTR Record

A

Allows a DNS resolver to provide an IP address and receive a hostname (reverse DNS lookup).

19
Q

CERT Record

A

Stores encryption certificates—PKIX, SPKI, PGP, and so on.

20
Q

SRV Record

A

A service location record, like MX but for other communication protocols.

21
Q

TXT Record

A

Typically carries machine-readable data such as opportunistic encryption, sender policy framework, DKIM, DMARC, etc.

22
Q

SOA Record

A

This record appears at the beginning of a DNS zone file, and indicates the Authoritative Name Server for the current DNS zone, contact details for the domain administrator, domain serial number, and information on how frequently DNS information for this zone should be refreshed.

23
Q

Which DNS record type is generally used to point Route 53 record sets at AWS logical resources ?

A

Alias records let you route traffic to selected AWS resources, such as CloudFront distributions and Amazon S3 buckets.