DNS Packet library
Recently, I've been contributing to the node.js library dns-packet. This library takes a JSON description of DNS fields and encodes them into raw DNS packets. On the receiving side, it also decodes raw DNS packets and returns a JSON representation.
It's a handy package that I am using for another future project to be announced soon I hope.