The main limiting issue with the domain this function is potentially picking an x-value that makes that denominator equal 0, because dividing by 0 is bad.
So, the domain will be all real numbers, except for those that make g(x)=0.
g(-1) = 0, g(-2)=0, and g(2) = 0, so -1, -2, and 2 must be excluded from the domain.
Your answer is {x ∈ ℝ| x ≠ −1, −2, 2}.