DNS parsing improvements