handle dns errors