Since you treated him with flea medication I assume at one point he had fleas. Flea allergy dermatitis can start even after 1 flea bite. He may not have fleas anymore but you may be dealing with the aftermath.
There are other causes of dermatitis besides fleas. Other dermal parasites are possible-like mites or ringworm. Trauma--like an abrasion--can make a dog overgroom and cause sores.
Dogs can also get hot spots--these are localized areas of severe moist dermatitis. Hot spots are very itchy and painful. Dogs lick and bite these areas making them worse. They can become infected very quickly.
It would be best to have your dog examined by a veterinarian to determine the cause of the sores. They will prescribe appropriate medication and pain medication.
There are other causes of dermatitis besides fleas. Other dermal parasites are possible-like mites or ringworm. Trauma--like an abrasion--can make a dog overgroom and cause sores.
Dogs can also get hot spots--these are localized areas of severe moist dermatitis. Hot spots are very itchy and painful. Dogs lick and bite these areas making them worse. They can become infected very quickly.
It would be best to have your dog examined by a veterinarian to determine the cause of the sores. They will prescribe appropriate medication and pain medication.