Well we have a function and its body is a fraction so we need to handle those edge cases, namely division by 0.
That means solving the following equation,
.
As we can see x must not be equal to 0 or 2 if we do not want to end up with division by zero situation.
The domain is therefore
.
Writing this as interval would be,
.
Hope this helps.