News for hackers. Stuff that matters.
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.
Re:A toy DNS resolver by tptacek on Tuesday February 01, 2022 @07:29PM (#30171864)
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.

Re:A toy DNS resolver by djur on Tuesday February 01, 2022 @06:05PM (#30170931)
Seems more like writing an article where you explain how HTTP caching headers work by using libcurl to write a program to mirror a website. The purpose isn't showing off, it's education.