大网数据广告活动
网站运营与故障问答

Why pay for a distributed DNS service when ISPs cache lookups?

· 52CE 我爱测

Suppose I've purchased example.com from my neighbor's startup domain name company, superlowcostdomainnames.com (aka SlowDNS). At first DNS is a bit of a performance drag, because SlowDNSs servers are all hosted in my neighbor's b…

问题原文

原帖链接 · crenshaw-dev · CC BY-SA 4.0

Suppose I've purchased example.com from my neighbor's startup domain name company, superlowcostdomainnames.com (aka SlowDNS).

At first DNS is a bit of a performance drag, because SlowDNSs servers are all hosted in my neighbor's basement. My site only got ~100 visits per day, so ISPs often didn't have the domain name record cached. The requests would travel all the way to my neighbor's basement.

But now example.com has taken off and is receiving hundreds of thousands of visits every day. I suppose it must be the attractive combination of rounded corners and a beige background.

So now, most DNS requests are fast, since they're cached at the ISP.

But a representative for SkyFlashCDN is trying to sell me their distributed DNS service. Instead of requests traveling to my neighbor's basement, they'll be serviced by "one of 1138 data centers around the world."

My site is popular, and ISPs are basically functioning as a distributed DNS service. Why would I pay for the service when I'm (apparently) getting the equivalent for free? Is there some performance benefit I'm missing?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

You shouldn't host DNS in your basement. At a minimum you should have 3 DNS servers located in different geographic locations on separate networks. Otherwise DNS is a single point of failure. Your website could easily be knocked offline by:

  • A power outage in a single location
  • A network outage in a single location
  • A single computer crash
  • A denial of service attack against DNS
  • A single hacker

Basic but robust DNS services are super cheap. You can get get DNS hosting for $10 or $20 per year. Such services are often bundled with domain registration or web hosting. There is really no reason to host DNS yourself in your basement.

I don't see a lot of benefit from moving from 3 nameservers to thousands though. As you point out, DNS requests are often cached, and DNS performance is rarely bad enough to cause perceivable performance problems for the site as a whole.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-11-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。