subject to-zoning laws

Hey guys,
I am trying to acquire single family homes “subject to”. However, I know that there are certain areas that are not zoned for residential home rental. I am worried that I will accidentally acquire a house and try to put in a tenant/buyer and then find out that I can not rent it out to anyone legally due to zoning laws…and I am stuck with a mortgage payment and no renter. What do other “subject to” investors do about this problem? Do they ignore the city laws and rent them out anyway?

Thanks,
Sonriffic