add dns check to old script too