The given equation is,

Domain function is defined everywhere except those values of argument
x when the denominator is zero.
That is,
x + 2 = 0
x = -2
SO the domain is,

(Since x = -2 gives only 4)
domain is real numbers except -2.
putting, x = -2, we have,

Therefore the range is

Thus range is real numbers except 4
Thus, correct option is (d)