Refactor default dns addition