Do you set the denominator to zero? I am not 100% sure.
Are you sure it's not ?
You are on the right track; set the denominator to zero because when it is zero, f is undefined (so exclude any such x from the domain). Also, solve because that will make non-real.