well, when it comes to fractions or rationals, they can never have a denominator that's 0, because if that ever happens, the fraction becomes undefined, so the values of "x" or namely the domain values, that we cannot have because they make the fraction undefined are those values that make the denominator 0, we can simply get them by setting the denominator to 0 and check what's "x".
![x^2-9=0\implies x^2=9\implies x=\pm√(9)\implies x=\pm 3 \\\\[-0.35em] ~\dotfill\\\\ g(x)=\cfrac{x+6}{x^2-9}\hspace{5em} x\\e \begin{cases} 3\\ -3 \end{cases}](https://img.qammunity.org/2023/formulas/mathematics/college/6pr2ruvzq99gzqonv1cd55fdjqnvyg0mrf.png)