Only call ensure_dns_uptodate when required