Loading...

Build your own DNS server

Learn about the DNS protocol, DNS record types and more.

This challenge is free to try when it's in beta. We keep challenges in beta for a few weeks to gather feedback.

In this challenge, you'll build a DNS server that's capable of responding to basic DNS queries. Along the way we'll learn about the DNS protocol, DNS packet format, forwarding servers, A record types, UDP and more.

Stages

Setup UDP server

In this stage, we'll start a UDP server on port 2053.

Very easy
We'd expect a proficient developer to take < 5 minutes to complete this stage.
Write header section

In this stage, we'll write a DNS packet's header contents

Medium
We'd expect a proficient developer to take 30 minutes to 1 hour to complete this stage.
show all...