Minor changes for DNS codec in [#2295]

Hi! I would like to help with this feature, it's really important for my. I do all the minor changes that @trustin mention in #2295 . If you want,  I can work on other things. I see that @trustin make a list of things in one of the last comments in #2295.