рдореБрдЦреНрдп рдордЬрдХреБрд░рд╛рдХрдбреЗ рдЬрд╛
JobCannon
рд╕рд░реНрд╡ рдХреМрд╢рд▓реНрдпреЗ

DNS

The internet's address book and traffic routing system

тмв рд╢реНрд░реЗрдгреА 2рддрд╛рдВрддреНрд░рд┐рдХ
+$10k-
рдкрдЧрд╛рд░рд╛рд╡рд░реАрд▓ рдкрд░рд┐рдгрд╛рдо
4 рдорд╣рд┐рдиреЗ
рд╢рд┐рдХрдгреНрдпрд╛рд╕ рд▓рд╛рдЧрдгрд╛рд░рд╛ рд╡реЗрд│
рдордзреНрдпрдо
рдХрд╛рдард┐рдгреНрдп
2
рдХрд░рд┐рдЕрд░реНрд╕
рдПрдХрд╛ рджреГрд╖реНрдЯрд┐рдХреНрд╖реЗрдкрд╛рдд

DNS translates domain names to IP addresses and is infrastructure for every internet service. Beginner: A, CNAME, MX records, dig/nslookup. Intermediate: TTL, propagation, SPF/DKIM/DMARC, ALIAS. Advanced: GeoDNS, failover, DNSSEC, split-horizon. Career: SRE/DevOps/Network Engineers (+$10тАУ20k). Learning: 3тАУ4 months. Tools: BIND9, Cloudflare, AWS Route 53, Google Cloud DNS, Azure DNS. Cloudflare era reshaped DNS management with built-in DDoS protection and edge routing.

DNS рдореНрд╣рдгрдЬреЗ рдХрд╛рдп

DNS translates domain names to IP addresses and is fundamental infrastructure for every internet application. Beyond basic resolution, DNS powers load balancing, failover, CDN routing, email delivery (MX, SPF, DKIM, DMARC), and service discovery. Misconfigured DNS is one of the most common causes of outages and email deliverability problems. Understanding DNS is critical for web deployments and debugging connectivity issues.

ЁЯФз рд╕рд╛рдзрдиреЗ рдЖрдгрд┐ рдкрд░рд┐рд╕рдВрд╕реНрдерд╛
BIND9UnboundCloudflareAWS Route 53Google Cloud DNSAzure DNSNS1ConstellixdignslookupdrilldnsmasqAdGuard DNSNextDNSQuad9

ЁЯТ░ рдкреНрд░рджреЗрд╢рд╛рдиреБрд╕рд╛рд░ рдкрдЧрд╛рд░

рдкреНрд░рджреЗрд╢рдЬреНрдпреБрдирд┐рдпрд░рдордзреНрдпрдорд╕реАрдирд┐рдпрд░
USA$95k$135k$185k
UK┬г55k┬г75k┬г105k
EUтВм60kтВм80kтВм115k
CANADAC$100kC$140kC$190k

ЁЯОп DNS рд╡рд╛рдкрд░рдгрд╛рд░реА рдХрд░рд┐рдЕрд░

тЪЦ рдпрд╛рдВрдЪреНрдпрд╛рд╢реА рддреБрд▓рдирд╛ рдХрд░рд╛

тЭУ FAQ

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.

рд╣реЗ рдХреМрд╢рд▓реНрдп рддреБрдордЪреНрдпрд╛рд╕рд╛рдареА рдпреЛрдЧреНрдп рдЖрд╣реЗ рдХрд╛, рдпрд╛рдЪреА рдЦрд╛рддреНрд░реА рдирд╛рд╣реА?

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдЖрдореНрд╣реА рдпреЛрдЧреНрдп рдорд╛рд░реНрдЧ рд╕реБрдЪрд╡реВ.

рдорд╛рдЭреНрдпрд╛рд╕рд╛рдареА рд╕рд░реНрд╡реЛрддреНрддрдо рдХреМрд╢рд▓реНрдпреЗ рд╢реЛрдзрд╛ тЖТ

рддреБрдордЪрд╛ рдЖрджрд░реНрд╢ рдХрд░рд┐рдЕрд░ рдорд╛рд░реНрдЧ рд╢реЛрдзрд╛

реи,релреирез рдХрд░рд┐рдЕрд░рдордзреНрдпреЗ рдХреМрд╢рд▓реНрдпрд╛рдВрд╡рд░ рдЖрдзрд╛рд░рд┐рдд рдЬреБрд│рдгреА. рдореЛрдлрдд, ~3 рдорд┐рдирд┐рдЯреЗ.

рдХрд░рд┐рдЕрд░ рдореЕрдЪ рдХрд░реВрди рдкрд╛рд╣рд╛ тАФ рдореЛрдлрдд тЖТ