\[y = - \frac{2}{x + 1};\ \ \ \ \ \ \ x + 1 \neq 0;\ \ \ \ \]
\[x \neq - 1\]
\[D(y) = ( - \infty; - 1) \cup ( - 1; + \infty).\]