move all DNS actions to the Cloud class. update tests.