Move check_dns_settings procedure to the correct level.