Settings

Theme

Roll Your Own CDN

reinterpretcast.com

46 points by joesavage 11 years ago · 26 comments

Reader

Blackthorn 11 years ago

Please do not run your own DNS server if you do not have the knowledge or expertise to properly secure it. It is extremely irresponsible, and the article is also irresponsible for suggesting it and not having any information about rate limiting.

  • kev009 11 years ago

    Use nsd. If you just run an authoritative only service, it is easy to do correctly.

  • kchoudhu 11 years ago

    I run a recursing DNS server behind a firewall for my home servers -- is this risky?

    • mcpherrinm 11 years ago

      If nobody can query the server from behind the firewall, you're fine. Nearly every home router runs a copy of dnsmasq as a recursive resolver for the users on the local network.

  • driverdan 11 years ago

    Plus your DNS servers (you are running more than one right?) are never going to be as fast as Route 53 and the ilk. Spend the $5/m and use a real DNS host.

  • mey 11 years ago

    Do you have any suggestions/articles on where people can learn how to run a DNS safely?

    • Blackthorn 11 years ago

      Unfortunately, I do not. Even though I personally learned on one of the big boys, I'd still pay somebody else to do this who has it as their dedicated job (like Amazon or Google). It's just not worth the headache and constant monitoring.

      At minimum you need conservative rate limiting and monitoring that will page you when you start sending out gobs of traffic.

kuon 11 years ago

I'd like to point out that google DNS among others uses anycast and are in reality composed of multiple servers geographically distributed, even if there is a single IP.

  • nly 11 years ago

    The IP you query as a client is anycast, but I'd wager recursive queries out of their caches come from geo-friendly IPs.

  • joesavageOP 11 years ago

    Right you are. Just updated the article to be more accurate on this matter.

pushrax 11 years ago

If you want to cut down on DNS-induced latency, Route 53 is a fairly good option. Their latency-routed DNS doesn't perfectly map to all geographical zones, but it works fairly well for DigitalOcean's locations.

I wish it was easier/cheaper to run your own anycast network...

dgl 11 years ago

The Powerdns geo backend as mentioned by the article is used by wikipedia among others.

I have some additions (e.g. Google Public DNS), see the files at https://gist.github.com/dgl/8344c3ebe405a1400e2d (which also has the rsync location for the original).

[edit: now I read the article again I notice the author is assuming 'eu' is going to get all of EU, it won't. There need to be entries for each country.]

le 11 years ago

This is a neat article, but 'CDN' is such a broad term. This is much more a very well done proof of concept article, but fails to take into account the huge scope of a large scale CDN, and all associated quirks it comes with.

ambrop7 11 years ago

It must be so hard to expand the abbreviation once.

  • rdl 11 years ago

    I think more people know "CDN" than the expansion (Content Distribution/Delivery Network).

    Same is probably true for ATM (financial or 53-byte cell), POP, DNS, RFP, RFC, IMAP, SSL, ...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection