Build it: the concierge who walks (a recursive resolver)

The concierge who walks the chain of referrals for you. In DNS Resolution you watched the walk with dig +trace. Here you build the walker, and the sticky notes it keeps.
Before you start. You need DNS Resolution (the concierge, referrals, glue, TTL), DNS on the wire (the bytes of a question and an answer) and Write the telegram yourself (you wrote a question by hand and read a name back out of a reply). This lesson joins them: the stub of 0009, grown into a program that starts knowing four addresses and ends up able to answer for any name. Python 3, no packages. A different build, From Scratch’s DNS server, is the other half of DNS: that one answers questions for a zone, and this one asks them.