The Madison County Commission shall have the power by ordinance to regulate and prevent within Madison County the running at large of all dogs or other animals and to pass all ordinances necessary for the impounding and sale of such dogs and destruction of dogs, so long as any ordinances are not inconsistent with Section 45–45–170 and no such ordinance shall permit the impounding of dogs which have a current Madison County license and a current inoculation for rabies unless the Madison County Commission has received a complaint regarding the dog running at large.