the restrictions are those x values where the demonstrator equals 0 d as once you cannot divide by zero
so for the first equation the function is undefined where
x^2+5x+6=0 factor this to
(x+3)((x+2)= 0
x= -3 and -2 which are the restrictions on the domain
I will leave the second one to you. find the values of x which make the denominator zero