August 2025
Intermediate to advanced
272 pages
6h 14m
English
Let’s write a funky little Elixir client that works as a (small) subset of dig. Since our imagination knows no bounds, we’ll call it xdig. We’ve got our protocol code in XDig.Protocol from the previous section, so let’s focus on the network parts. All the code is in code/xdig.
The first thing we need is a DNS server to connect to. There are many to choose from, such as Google’s 8.8.8.8, but we’re going to use 1.1.1.1,[110] a neat alternative from the folks at CloudFlare and APNIC.
Our client needs to do the following:
We’ll ...
Read now
Unlock full access