Re:A toy DNS resolver
by bragr on Tuesday February 01, 2022 @05:57PM
(#30170812)
Cannot second this enough. miekg/dns is probably tens of thousands of mature lines
of code covering all aspects of the DNS protocol. This feels like bragging about creating an minimal http client but really you just used libcurl to do the heavy lifting.
[ Parent
| on HN ]
It is nothing at all like using libcurl to do an HTTP request, as libcurl handles the semantics of the HTTP protocol, and not just marshaling and unmarshaling HTTP requests and responses.
miekg/dns is also 20,000 lines of code most of which are not relevant to the task of doing a recursive lookup.