A guide to writing a DNS Server from scratch in Rust
Go to file
Emil Hernvall 193d59344d Grammar
2018-03-19 11:39:30 +01:00
samples Fixed qname parsing issue 2018-03-19 11:37:16 +01:00
.gitignore Initial commit 2016-07-13 13:53:28 +02:00
chapter1.md Fixed qname parsing issue 2018-03-19 11:37:16 +01:00
chapter2.md Chapter links 2018-03-19 11:33:11 +01:00
chapter3.md Chapter links 2018-03-19 11:33:11 +01:00
chapter4.md Chapter links 2018-03-19 11:33:11 +01:00
chapter5.md Tweaks 2018-03-15 14:42:42 +01:00
README.md Grammar 2018-03-19 11:39:30 +01:00

Building a DNS server in Rust

The internet has a rich conceptual foundation, with many exciting ideas that enables it to function as we know it. One of the really cool ones is DNS. Before it was invented, everyone on the internet - which admittedly wasn't that many at that stage - relied on a shared file called HOSTS.TXT, maintained by the Stanford Research Institute. This file was synchronized manually through FTP, and as the number of hosts grew, so did the rate of change and the unfeasibility of the system. In 1983, Paul Mockapetris set out to find a long term solution to the problem and went on to design and implement DNS. It's a testament to his genius that his creation has been able to scale from a few thousand computers to the Internet as we know it today.

With the combined goal of gaining a deep understanding of DNS, of doing something interesting with Rust, and of scratching some of my own itches, I originally set out to implement my own DNS server. This document is not a truthful chronicle of that journey, but rather an idealized version of it, without all the detours I ended up taking. We'll gradually implement a full DNS server, starting from first principles.