Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

APNIC Blog 16 min read Opinion hardMaster

DNS topics at IETF 127

IETF 127 DNS discussions spanned ICANN's reserved .internal TLD for private namespaces, Optimistic DNS (serving expired cache entries while refreshing), and the choice for post-quantum DNSSEC between Merkle Tree Ladders and 2,420-byte ML-DSA signatures that push resolution onto TCP. Other proposals included the MERKLE3 256-ary Merkle tree for incremental ZONEMD digests, refusing RRSIG and ANY queries to curb amplification and signer load, mandated ordering of CNAME chains in responses, a _domain-set TXT convention, and a revival of resolverless DNS via server push. Huston is skeptical of Optimistic DNS and organizational metadata in the DNS, and prefers FORMERR or NOTIMPL over REFUSED because REFUSED triggers around ten resolver retries.

Related posts

  • The Case of the Recursive Resolvers

    Slack Engineering mediumAdept

    Slack's third attempt to enable DNSSEC on slack.com caused a 24-hour outage for under 1% of users. A Route 53 bug produced NSEC responses for the *.slack.com wildcard record without the information validating resolvers need, so names like app.slack.com came back NODATA. The rollback made things worse: the team believed DS records at the .com zone were not cached, but resolvers cache them for up to 24 hours. Removing the DNSKEYs while DS records were still cached caused SERVFAIL until caches were flushed or expired. Lessons include testing wildcard records before rollout, understanding DS record TTLs, and noting that Terraform hid Route 53's warning about disabling signing.

  • How we halved DNS build delay and cut memory use by 85%

    Cloudflare hardMaster

    Cloudflare's DNS Zone Builder now uses a targeted build planner that picks the smallest provably safe build (resources only, resources plus metadata, apex plus metadata, purge, or full zone) and a unified per-zone scheduler that merges queued work. Zone setting changes no longer rebuild zones with tens of millions of records. The change cut peak memory by 85% and halved the time from a DNS change to its write to Quicksilver. Correctness comes from enriched Kafka events, re-planning against a fresh replica snapshot, careful handling of metadata keys shared across same-name zones, soft Kafka offset commits, byte-for-byte equivalence tests, and a mirror pipeline whose output is diffed against production.

  • Post-quantum readiness for TLS at Meta

    Meta Engineering hardMaster

    Meta has deployed hybrid X25519+Kyber key exchange in its Fizz TLS library for most internal service traffic, prioritizing store-now-decrypt-later protection where it controls both endpoints. Kyber768 is the default, but Kyber512 is used where the larger 1184-byte keyshare pushed resumption ClientHellos (with PSKs) past the TCP MSS and broke TCP Fast Open, adding an extra RTT. Rollout surfaced a race condition in liboqs's Keccak dispatch causing segfaults, fixed upstream with pthread_once, and HelloRetryRequest thrashing during cross-host resumption, solved by splitting TLS session scopes into classical and hybrid. The hybrid group cost about 40% more CPU than X25519 alone.

  • Why We Built Our Own DNS Infrastructure

    Replit mediumAdept

    Replit made its repl hosting cluster-aware by running its own authoritative DNS server for *.repl.co, which resolves each repl's domain to the proxy load balancer in the cluster hosting that repl. This avoided a "meta-proxy" layer that would have added two extra hops per request. The Go server, built on miekg/dns, CNAMEs ACME DNS-01 challenges to a GCP-managed validation zone. Because DNS caching can outlive the 60s TTL, proxies in the old cluster use tombstones to transparently forward requests for repls that have moved. Custom domains work unchanged because they already CNAME to <repl id>.repl.co.

  • How CDNs Generate Certificates

    Fly.io mediumAdept

    CDNs like Fly obtain Let's Encrypt certificates for customer domains using the ACME tls-alpn-01 challenge, which needs neither DNS access nor port 80. The older tls-sni-01 challenge was removed because shared-hosting providers let customers claim arbitrary .invalid names and upload certificates, enabling issuance for other tenants on the same IP. The history runs through NPN vs. ALPN negotiation, NPN downgrade attacks and the middlebox bug that produced the ClientHello padding extension. Fly's flow ends with its Rust proxy recognizing the "acme-tls/1" ALPN value and serving a self-signed challenge certificate. Subdomain takeover is mitigated by giving every app a unique IPv6 address and requiring a CNAME to it before validation.

The quest for software engineering knowledge.

Look:
Layout: