refine local dns resolve