Lecture 9: DNS Caching Flashcards

1
Q

What is TTL?

A

Time-To-Live

TTL sets the expiration for cached DNS records

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

What happens to cached DNS records after the TTL expires?

A

The cached DNS records must be thrown out and new DNS records fetched via a new DNS call

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

How are TTLs typically measure?

A

hours or days

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

What is propagation delay?

A

The amount of time required for a signal to be received after it has been sent

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

Why does DNS system suffer from slow convergence?

A
  • Caching over the lifespan of the TTL
  • Slowness of changes made by TLD DNS servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why does DNS system suffer from slow convergence?

A
  • Caching over the lifespan of the TTL
  • Slowness of changes made by TLD DNS servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How long does it usually take for DNS system changes to fully propagate?

A

24-48 hours

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

What are the benefits of caching in DNS?

A
  • Decreases response time
  • Decreases load on the DNS service, the root and TLD DNS servers
  • Improves the robustness and reliability of the system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the drawbacks of caching?

A
  • It makes DNS opaquer and more difficult to predict
  • Results in slow convergence and uneven propagation
  • Offers a vector for attack
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the tradeoff with TTL?

A

The longer the TTL, the more efficient, but also the slower the convergence and updates are

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

What protocol and port has DNS traditionally been done on?

A

A User Datagram Protocol (UDP) requests on port 53

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

What are the new ways DNS is done though

A

DNS via TLS

DNS vis HTTPs

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

What are the drawbacks of DNS via UDP?

A
  • Little to no security
  • Anyone sniffing around can see the DNS packets and know what domains you might be trying to retrieve
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the DNS Date Format?

A

Header: transaction ID, flags, count of questions and answers

Answers: responsive data returned by the authoritative name server

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

What is the purpose of the transaction ID?

A

Match a request to a response

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

What is the purpose of the transaction ID?

A

Match a request to a response

16
Q

What makes up the control field?

A
  • QR flag
  • opcode
  • AA, TR, RD, and RA bits
  • Z-field
  • R Code
17
Q

What is a QR flag?

A

Can turn a request header into a response header

0: Queries
1: Responses

18
Q

What is the OPCode?

A

Used for internal testing
Typically just four zero bits

19
Q

What is AA?

A

Represents whether the response came from an
authoritative DNS server

0: Caches and resolvers
1: Authoritative DNS server

20
Q

What is TR?

A

1: DNS response > 512 bytes. User must use an alternative protocol (other than UDP)

21
Q

What is RD (Recursion Desired) and RA (Recursion Available)?

A

Bits notify the server (RD) or the client (RA) whether recursive DNS resolution is wanted

22
Q

What is Z-Field?

A

Reserved for future use – these three bits are always set to zero in present use

23
Q

What is R Code?

A

provides a response code that informs the client if there were any errors

0000: Everythings ok

24
Q

What are the four counts in order?

A
  • Question Count
  • Answer Count
  • Authority Count
  • Additional Count
25
Q

What is the question count?

A

Number of questions we’re asking, as a requester

26
Q

What does each question represent in the question count?

A

One domain that we are querying for

27
Q

What is the answer count?

A

Number of answers the server has responded with

28
Q

What does each answer represent in the answercount?

A

Each DNS record returned is an answer

29
Q

What is the Authority Counts?

A

How many name server records are returned

30
Q

What is the Additional Count?

A

How many additional resource records are included