The correct answer is B.) (∞,-1) ∪ (-1,2) ∪ (2,∞)
To find the domain of a rational function, set the denominator equal to zero and solve.
I have to go in like 2 minutes, so I won't be able to explain it in full detail, but I hope this helps. Have an amazing day :)