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