The Internet Domain Name System
The Internet Domain Name System
Hari Balakrishnan
Goals
• DNS architecture
How DNS works
• DNS uses
Mail
Content Distribution Networks (CDNs)
• DNS Performance
How well does it work?
Why does it work?
Why naming?
• dig www.google.com
www.google.com. 162 IN A 216.239.53.100
google.com. 345579 IN NS ns3.google.com.
google.com. 345579 IN NS ns4.google.com.
google.com. 345579 IN NS ns1.google.com.
google.com. 345579 IN NS ns2.google.com.
• dig www.google.com –t MX
www.google.com. 86210 IN MX 20 smtp2.google.com.
• What are the #s in the second column?
• What’s the number next to the MX answer?
• Advantage of one RR per type, versus single RR with multiple
values?
Database distribution
• gethostbyname() is a lookup
• Local DNS server makes one or more queries
(recursive resolution)
• Each contacted server responds with a
response
• A response could be a referral, to go
someplace else
• A response that is not a referral is an answer
Performance study motivation
• How well does DNS work today?
Scalability
Robustness
Protocol
problems?
Load-balancing
Content Distribution Networks
Suspicion
• But…
18% of all “flows” in 1997
1 out of 5 flows is a DNS flow???
Subnet 1
Collection
machine
Subnet 2
External
network
Subnet 3
LCS/AI
Router
Subnet 24
KAIST Topology
Subnet 1
Collection
machine
Subnet 2
External
network
Subnet 3
ns1.kaist.ac.kr
ns2.kaist.ac.kr
External
Subnet N;
network
N > 100
Basic Trace Statistics
Why is hit rate not much higher than 80% and does it matter?
Unanswered lookups
• Three syndromes
Zeroreferrals (5%-10%)
Non-zero referrals (13%-10%)
Loops (5%-3%)
Reason: Misconfigurations!
Many Lookups Elicit No Response
(MIT data)
scalability
Make ‘em all 5 minutes (or less!) and things will be just fine
Large-scale sharing doesn’t improve hit-rates
NS-record caching is critical
References
• The top 10% account for more than 68% of • Shorter TTL names are more frequently
total answers accessed
• A long tail: 9.0% unique names • The fraction of accesses to short TTLs
Root queries regardless of caching scheme has greatly increased
Indicating increased deployment of DNS-
based server selection
Trace-driven Simulation
mit-dec00 kaist-may01