The domain is all the possible x values and the range is all the possible y values.
Basically you have to look for values that x or y cannot be.
You cannot divide by 0
You cannot find the square root of a negative number.
You cannot find the log of 0 or of a negative number.
Thes are a amoung the most common things you have to look for. :)