Build them a digging pit. A designated place to dig. Loose soil and sand, bury some toys and treats shallowly in the area and show the dog how to dig for things in the correct spot. When he starts to dig elsewhere, redirect him to the digging pit and let him dig to his heart's content.
Good luck.