Get his anal glands checked. They might need to be drained. It's disgusting so you want to get it done before they burst!

Has he been dewormed lately? Some dogs will do that if that worms too.