The domain is all the values that #x# is allowed to take on. The only problem I have with this function is that I need to be careful not to divide by zero. So the only values that x can not take on are those which would cause division by zero. So I'll set the denominator equal to zero and solve; my domain will be everything else.
So the domain of this function is everything from positive infinity to negative infinity except #-2#.
The range is all the values that #y# will take on. In this case, the range is all x.