Build a DNS Resolver

CNAME chasing with TTL caching

Challenge 1 of Networking & ProtocolsIntermediate~55 minFree

Resolve names to addresses: look up A records, follow CNAME chains (with loop protection), round-robin multiple addresses, cache answers by their TTL, and negatively cache misses.

5 steps

  1. 1A-Record Lookup
  2. 2Following CNAMEs
  3. 3Round-Robin Addresses
  4. 4TTL Caching
  5. 5Negative Caching
Start step 1