Lesson 5.2 - DNS Flashcards

1
Q

Purpose of DNS

A

Map human-readable names to IP addresses

-Human-readable is easier to remember but IP is needed to send traffic to intended destination

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

gethostbyname()

A

Takes domain name as arg and returns IP address

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

stub resolver

A

simple resolver handling all the DNS lookups for the OS. The resolver will send DNS queries (with recursive flag on) to a specified recursive resolver (name server) and stores the records in its cache based on their TTL (had to Google this one)

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

Local DNS resolver

A

Typically configured automatically when your host is assigned an IP address, using a protocol called domain host configuration protocol (DHCP)

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

Local host may have __ local DNS resolvers

A

2
-Tries the first one. If no response in certain preconfigured timeout, send query to second one as backup. Typically issued recursively.

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

Local resolver performs _____ queries

A

Iterative

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

Root of DNS hierarchy

A

Each fully-qualified domain name is presumed to end with a dot
-IP address for the root servers (those that are authoritative for the root) may already be configured in the local DNS resolver

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

Cache on local resolver

A

Iterative process can be slow. Cache commonly queried/repeated mappings (like google.com)

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

TTL

A

Time to live

  • Indicates how long an answer can be saved (cached). Typically hours, days, or even weeks.
  • Mapping of a local name (www.gatech.edu) on the other hand might change more infrequently. Thus, local TTL’s might need to be smaller.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

‘A’ record

A

maps an IP address to a domain name

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

NS record

A

‘Name server’ record

  • maps domain name to authoritative name server for that domain
  • Referrals: if we ask the root for a mapping to an IP address, it doesn’t know the answer, but can issue a name server reply (NS record) referring the resolver to a different name server that could be responsible for that part of the domain namespace
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

DNS is implemented as a _____

A

hierarchy

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

MX record

A

shows the mail server for a particular domain

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

CNAME

A

Canonical name. Like an alias. Basically a pointer from an alias to another domain name that needs to be looked up.

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

PTR

A

Maps IP address to domain names (like a reverse lookup)

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

AAAA

A

“Quad A record”: maps domain name to an IPv6 address

17
Q

Priorities

A

In addition to TTL, we can use priorities to allow a system admin to configure a primary and a backup mail server, for example. They can be the same level if no preference.

18
Q

Trace option

A

In dig, shows full lookup hierarchy

19
Q

in-addr.arpa

A

Maintains referrals to authoritative servers that are maintained by their respective internet routing registries such as ARIN, RIPE, etc. REVIEW THIS