DNS Of Application Layer Flashcards
What is DNS (domain name system)?
Distributed database
Hierarchy of many name servers
How do you optimise DNS?
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
What are the benefits of DNS optimisation?
Improves response time
Cache entries Tim edit after certain TTL
May be out of date
How does DNS protocol message work?
Query and reply have same format
Message header: identification (16 bits) and flags (query/reply)
What is an iterated query?
Always comes back to local DNS server
What is a recursive query?
Not normally taken (lots of queries)
How does host aliasing work?
Host has 1 canonical name
DNS translates from several aliases to host then IP
How does local distribution work?
Query for aliased name mapped to set of addresses
Responds with entire set in rotated order addresses
What is the RR format of DNS records?
Name
Value
Type
TTL
How does email work?
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