Is your dog kept in the kennel outside? Is it a Kennel that the dog can get out off or is it an enclosed Kennel?
It is unusual for dogs to mess the area they sleep in so I am guessing that the dog is locked up, and if this is the case, then it appears for too long....Your dog should go to the toilet just after eating (1-2hrs after even sooner)
Place some of your dog's poo in the area that you would like him to poo in. This may encourage him to use this area. Clean up the other areas regularly and thoroughly. And you need to really Praise your dog when you catch him pooing in the correct place.
And also do not use any punishment as this is actually likely to make the problem worse. Your dog may feel comforted by having his scent around him. Punishment can create anxiety which, in turn, can create the dog's need to feel secure. Dogs use their own scent to feel secure.