βΆWhy is DNS called 'the cause of half our outages'?
DNS failures can cascade silently β clients cache incorrect IPs, email bounces, services timeout. TTL misconfiguration prolongs outages; propagation delays mean some users see old records. A single misconfigured NS record can break an entire domain. Always test DNS changes with dig before relying on browser cache.
βΆWhat's the difference between DNS-over-HTTPS (DoH) and traditional DNS?
Traditional DNS over port 53 is unencrypted, exposing queries. DoH wraps DNS over HTTPS (port 443), encrypting queries from browsers and ISPs. Most modern browsers support DoH; it's becoming standard. Trade-off: slight latency increase, blocks some DNS-based parental controls. Cloudflare, Google, Quad9 run DoH resolvers; NextDNS offers DoH with per-client rules.
βΆHow does anycast routing work in DNS?
Anycast assigns the same IP to multiple servers globally; routers direct clients to the geographically nearest one. Cloudflare, Google DNS, and NS1 use anycast for low-latency resolution. Clients always hit the closest edge without knowing. Enables global failover and DDoS resilience at the DNS layer β critical for large services.
βΆWhat is GeoDNS and why is it powerful?
GeoDNS returns different A records based on client geography, allowing you to route users to nearest servers, comply with data residency laws (EU users β EU servers), or A/B test by region. Cloudflare, AWS Route 53, and NS1 all support it. Pro tip: combine with health checks for automatic failover to backup region if primary is down.
βΆHow do DNS records work in Kubernetes (ExternalDNS)?
ExternalDNS automatically creates DNS A/CNAME records from Kubernetes Ingress or Service annotations, syncing with AWS Route 53, Google Cloud DNS, or Azure DNS. When you deploy `kind: Ingress` with annotation `external-dns.alpha.kubernetes.io/hostname`, ExternalDNS registers the domain automatically. Eliminates manual DNS management in K8s environments.
βΆSPF, DKIM, DMARC β why all three?
SPF (TXT record, IP whitelist) prevents spoofing but is easy to bypass. DKIM (public key in TXT) cryptographically signs emails. DMARC (TXT policy) ties them together: 'if DKIM+SPF pass, deliver; else quarantine/reject'. All three required for deliverability to Gmail, Office 365. Missing any one causes mail to land in spam. Always publish all three.
βΆCNAME vs ALIAS β when do I use each?
CNAME points a subdomain to another domain (e.g., www β example.com). You CANNOT use CNAME on the zone apex (example.com). AWS, Cloudflare, and others provide ALIAS (proprietary): a zone-apex-safe pointer. Use CNAME for subdomains, ALIAS (or A record) for the root. If DNS provider doesn't support ALIAS, use A record with IP and accept manual updates.