Fix DNS parsing