---
title: "Comment by SMTasker on \"Building a Zero-Dependency Recursive DNS Resolver from Scratch in C++20 and Deploying It with Docker\" | Hashnode"
description: "I would add packet fixtures alongside the successful lookup walkthrough: a compression pointer that points to itself, a pointer beyond the received buffer, and"
url: "https://hashnode.com/posts/building-a-zero-dependency-recursive-dns-resolver-from-scratch-in-c-20-and-deploying-it-with-docker/6b11a71065fa2f717312d840/comment/6b11f8e6d6d71b1d3aedf1b4"
---

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

Comment [Building a Zero-Dependency Recursive DNS Resolver from Scratch in C++20 and Deploying It with Docker](https://hashnode.com/posts/building-a-zero-dependency-recursive-dns-resolver-from-scratch-in-c-20-and-deploying-it-with-docker/6b11a71065fa2f717312d840)

[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.
