Lecture 10: DNS Format Flashcards

1
Q

What are the 3 parts requests and responses consist of?

A
  • Header
  • Questions
  • Answers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A request will contain __ questions

A

At least 1

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

A request will contain __ answers

A

0

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

A response will include the ___ in addition to answers

A

original question

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

A DNS question contains 3 parts

A
  • QNAME
  • QTYPE
  • QCLASS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the QNAME field specify?

A

The domain name we are attempting to retrieve

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

What does the QNAME field do?

A

Splits the domain name on periods to produce labels

Each get a length byte prepended on stating how long the label is with 0x00 on the end

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

What does the QTYPE field specify?

A

What DNS record type we want to fetch

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

What does the QCLASS field specify?

A

Assigns internet queries to the internet (1)

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

Which field is considered obsolete?

A

QCLASS

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

How are DNS requests sent

A

UDP uses no ACKnowledgements

DNS aggressively sends new DNS requests if a response isn’t received

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

How does a DNS cache or resolver answer a request?

A
  • Sets QR flag to 1
  • Set/Unset recursion requested/available flag in control field
  • Updates the answer count to reflect the number of answers returned
  • Appends the answer directly to the end of the message after the question and then returns it to the client
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the fields in the answer format

A
  • QNAME
  • QTYPE
  • QCLASS
  • TTL
  • RDLENGTH
  • RDATA
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the difference between the QNAME in an answer and a question?

A

Uses a two octet sequence as an offset to a previous instance of the label

To save space

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

Why use the add two true bits rule?

A

To help differentiate it from the domain name format

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

What is the TTL field?

A

32 bit unsigned integer

Used to describe how long a DNS record may be cached for

17
Q

What is the RLENGTH field?

A

16 bit integer

represents the number of octets in the RDATA field

18
Q

What is the RDATA field?

A

Contains the actual answer data