kazu-yamamoto/dns — pull request #3 by yihuang (2011-10-23 14:14:58+00:00)
Title: Make this library full capable of decoding and encoding.

You should merge this pull request for iproute first: https://github.com/kazu-yamamoto/iproute/pull/4 .

These changes would make dns library's encoding and decoding process invertable and complete.
It include tests and a simple dns proxy server to demonstrate this.
tcpdump can verify the protocol encoding and decoding works identically as real dns server, although I only watched it for common cases.
Since this is the first time i work with dns protocol so closely, there maybe mistakes, I look forward to any suggestions.
Hope you like these changes.