4 ms·
I made one too https://github.com/ccouzens/dns-packet https://github.com/ccouzens/dns-packet The differences: I followed this guide rather than the RFCs https
by ccouzens 5y ago
I made one too https://github.com/ccouzens/dns-packet https://github.com/ccouzens/dns-packet
The differences:
I followed this guide rather than the RFCs https://github.com/EmilHernvall/dnsguide/blob/master/chapter1.md https://github.com/EmilHernvall/dnsguide/blob/master/chapter...
Mine isn't as polished. The command line parsing and output is more thrown together.
I hardcoded the packet identifier (it's not production code, and I'm only looking up one at a time).
I didn't use any bit manipulation libraries. I can see they would help because DNS packets don't line up their information with the byte boundaries.