# codecrafters-io/build-your-own-dns-server architecture

> Architecture diagram of the GitHub repository codecrafters-io/build-your-own-dns-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/codecrafters-io/build-your-own-dns-server
- Repository: https://github.com/codecrafters-io/build-your-own-dns-server

## Overview

This repository contains the content for a Build Your Own DNS Server challenge, not a single deployed DNS service. A participant works through the challenge using language-specific starter code; the repository also includes reference solutions and starter templates for the supported languages. The sampled starter code illustrates a UDP server workflow, but these implementations are separate alternatives, not stages that call one another. Edges are limited to the challenge relationship documented by the README; the language directories summarize their respective code variants.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_challenge["Challenge materials"]
  node_challenge_content["DNS challenge"]
end

subgraph group_implementations["Language implementations"]
  node_compiled_variants["Compiled starters"]
  node_reference_solutions["Reference solutions"]
  node_starter_templates["Starter templates"]
end

node_participant(("Challenge participant"))

node_participant -->|"completes"| node_challenge_content

click node_compiled_variants "https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/compiled_starters"
click node_reference_solutions "https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/solutions"
click node_starter_templates "https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/starter_templates"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_challenge_content toneBlue
class node_compiled_variants,node_reference_solutions,node_starter_templates toneAmber
class node_participant toneIndigo
```

## Components

### Challenge materials

- **DNS challenge**

### Language implementations

- [Compiled starters](https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/compiled_starters): `compiled_starters`
- [Reference solutions](https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/solutions): `solutions`
- [Starter templates](https://github.com/codecrafters-io/build-your-own-dns-server/tree/main/starter_templates): `starter_templates`

### Other components

- **Challenge participant**

## Connections

- Challenge participant → DNS challenge: completes (evidence: `README.md`)
