fixing the parse dns method