Minor changes for DNS codec in [#2295]

I do all the minor changes that @trustin mention in #2295