refine remote dns resolve