refine dns resolve