Refine DNS settings