If the nails are cracking into the nail bed, causing pain, and/or are always deformed looking, you may have a medical issue - an infection, ringworm, allergies....something like that. You would want to see the vet about that.
If the nails are just dry and crack a bit after a nail trim, I would recommend giving your dog a fish oil (omega 3 fatty acid) pill each day.