add DNS check at begining

Reviewer: trivial