DNS Of Application Layer Flashcards

1
Q

What is DNS (domain name system)?

A

Distributed database

Hierarchy of many name servers

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

How do you optimise DNS?

A

When local server caches name IP-mappings
Local DNS server: returns reply from local cache or forwards request to DNS hierarchy
Caching: once name server learns mapping, caches mapping and immediately returns

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

What are the benefits of DNS optimisation?

A

Improves response time
Cache entries Tim edit after certain TTL
May be out of date

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

How does DNS protocol message work?

A

Query and reply have same format

Message header: identification (16 bits) and flags (query/reply)

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

What is an iterated query?

A

Always comes back to local DNS server

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

What is a recursive query?

A

Not normally taken (lots of queries)

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

How does host aliasing work?

A

Host has 1 canonical name

DNS translates from several aliases to host then IP

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

How does local distribution work?

A

Query for aliased name mapped to set of addresses

Responds with entire set in rotated order addresses

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

What is the RR format of DNS records?

A

Name
Value
Type
TTL

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

How does email work?

A

User agents: compose, edit, read email
Mail servers: inbox contains incoming messages, message queue has outgoing
SMTP: client server protocol, uses TCP, handshaking then transfer message then closure

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