If he's just whining, he could be dreaming that he's being kept from chasing a nice kitty or something. If he's really wailing, I'd be more concerned about his general stress level.
I wouldn't touch a dreaming dog -- you can speak softly to him until his eyes open if you feel bad about whatever he might be suffering. You shouldn't risk a reflexive bite by touching him, though.