From the source
Replit built its own authoritative DNS name server to route HTTP requests for *.repl.co domains to the correct cluster's proxy load balancer, enabling cluster-aware hosting without extra network hops.
The DNS server, implemented in Go, also handles DNS-01 challenges for TLS certificates and uses low TTLs (60s) with tombstones to transparently migrate repls between clusters.





