NameServe is building a managed DNS service (like Route 53 / Cloudflare DNS). Customers delegate their domains to NameServe's nameservers for authoritative DNS hosting. Features:
- Zone management - API and dashboard for managing DNS records (A, AAAA, CNAME, MX, TXT, SRV, etc.) for customer domains.•Low-latency resolution - DNS queries must be answered in < 10 ms from the nearest PoP. Deploy authoritative DNS servers at 30+ global locations.•Health-check routing - check backend endpoints every 30 seconds. If a backend is unhealthy, automatically remove its IP from DNS responses (failover routing).•Geo-based routing - return different IPs based on the requester's geographic location (e.g., US users → US servers, EU users → EU servers).•Weighted routing - distribute traffic across backends by weight (e.g., 70% to primary, 30% to canary).•Fast propagation - when a customer updates a DNS record, the change must reach all nameservers within 30 seconds.•DNSSEC - sign zones with DNSSEC to prevent DNS spoofing.
Handle 1 billion DNS queries per day across 100,000 hosted zones.
Design a managed DNS service with zone hosting, health-check routing, geo-based routing, and fast propagation. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> DNS -> Load Balancer -> API Gateway -> API Service -> Primary SQL DB -> Read Model DB -> Redis Cache