Lecture 9: DNS Caching Flashcards
What is TTL?
Time-To-Live
TTL sets the expiration for cached DNS records
What happens to cached DNS records after the TTL expires?
The cached DNS records must be thrown out and new DNS records fetched via a new DNS call
How are TTLs typically measure?
hours or days
What is propagation delay?
The amount of time required for a signal to be received after it has been sent
Why does DNS system suffer from slow convergence?
- Caching over the lifespan of the TTL
- Slowness of changes made by TLD DNS servers
Why does DNS system suffer from slow convergence?
- Caching over the lifespan of the TTL
- Slowness of changes made by TLD DNS servers
How long does it usually take for DNS system changes to fully propagate?
24-48 hours
What are the benefits of caching in DNS?
- Decreases response time
- Decreases load on the DNS service, the root and TLD DNS servers
- Improves the robustness and reliability of the system
What are the drawbacks of caching?
- It makes DNS opaquer and more difficult to predict
- Results in slow convergence and uneven propagation
- Offers a vector for attack
What is the tradeoff with TTL?
The longer the TTL, the more efficient, but also the slower the convergence and updates are
What protocol and port has DNS traditionally been done on?
A User Datagram Protocol (UDP) requests on port 53
What are the new ways DNS is done though
DNS via TLS
DNS vis HTTPs
What are the drawbacks of DNS via UDP?
- Little to no security
- Anyone sniffing around can see the DNS packets and know what domains you might be trying to retrieve
What is the DNS Date Format?
Header: transaction ID, flags, count of questions and answers
Answers: responsive data returned by the authoritative name server
What is the purpose of the transaction ID?
Match a request to a response