---
title: "Discussion on \"Building a Zero-Dependency Recursive DNS Resolver from Scratch in C++20 and Deploying It with Docker\" | Hashnode"
description: "Discussion on \"Building a Zero-Dependency Recursive DNS Resolver from Scratch in C++20 and Deploying It with Docker\". Most developers interact with DNS every single day without ever looking beneath the abstraction layer of getaddrinfo() or nslookup. When you type a domain name into a browser, an IP address comes back"
url: "https://hashnode.com/posts/building-a-zero-dependency-recursive-dns-resolver-from-scratch-in-c-20-and-deploying-it-with-docker/6b11a71065fa2f717312d840"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Zero-Dependency Recursive DNS Resolver from Scratch in C++20 and Deploying It with Docker](https://dnsresolutionproject.hashnode.dev/building-a-zero-dependency-recursive-dns-resolver-from-scratch-in-c-20-and-deploying-it-with-docker?utm_source=hashnode&utm_medium=feed)

Most developers interact with DNS every single day without ever looking beneath the abstraction layer of getaddrinfo() or nslookup. When you type a domain name into a browser, an IP address comes back

2d ago · 8 min read · dnsresolutionproject.hashnode.dev  
Read the article

-   [#dns](https://hashnode.com/tag/dns)
-   [#caddy](https://hashnode.com/tag/caddy)
-   [#express](https://hashnode.com/tag/express)

## Written by

[Abdullah Anwar](https://hashnode.com/@abdullahanwar)

@abdullahanwar · Islamabad, Pakistan

  
[View profile](https://hashnode.com/@abdullahanwar)

Student at NUST | Full Stack Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[SMTasker](https://hashnode.com/@smtasker)

[2d ago](https://hashnode.com/posts/building-a-zero-dependency-recursive-dns-resolver-from-scratch-in-c-20-and-deploying-it-with-docker/6b11a71065fa2f717312d840/comment/6b11f8e6d6d71b1d3aedf1b4)

I would add packet fixtures alongside the successful lookup walkthrough: a compression pointer that points to itself, a pointer beyond the received buffer, and a referral chain that revisits a nameserver. Give both recursive functions one shared lookup budget, then assert that each fixture ends with a bounded error rather than another traversal. That tests the raw-packet parser and the mutual recursion together.
