1st... is this a new behavior? Take him to the vet to make sure everything is ok... then...
this is what I did
I broke my dog of inappropriate toilet use with a wooden paddle.. I spanked him till his little fanny glowed red...all the while holding his nose in his mess... he Never went in the house again...ever... he lived to be 17 years old.