packet: Halfhearted attempt to fix up DNS packing

I think this actually needs a fair amount of work, but this is a
quick stab which at least sort of fixes some stuff?  Please file
issues with traces that elicit bad behavior.