News for hackers. Stuff that matters.
Re:A toy DNS resolver by dang on Tuesday February 01, 2022 @09:18PM (#30172726)
"Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something."

https://news.ycombinator.com/newsguidelines.html

Re:A toy DNS resolver by takeda on Tuesday February 01, 2022 @11:44PM (#30173813)
I know it starts like a shallow dismissal, but mentioning that code uses another DNS package as a dependency (miekg/dns) has a point. I originally missed that, and I believe many probably too.

I don't think author can claim "in 80 lines of code" when the code depends on a much bigger library than itself.

Re:A toy DNS resolver by comonoid on Wednesday February 02, 2022 @01:59AM (#30174632)
It's just a generic DNS packet parser, it has no any resolving logic (or it is not used). For learning the resolving process, it is a perfect combo.
Re:A toy DNS resolver by chlorion on Wednesday February 02, 2022 @12:17AM (#30174018)
The original title was "Writing a DNS resolver in 80 lines of Go".

The comment might seem like its being dismissive with the current title "A toy DNS resolver", but at the time of writing it was not just a shallow dismissal.

Re:A toy DNS resolver by tptacek on Wednesday February 02, 2022 @12:46AM (#30174209)
It was a shallow dismissal then too.