add DNS check at begining