It seems to me that if the dog has dermatitis on only one paw, then most likely the dog stepped on something with that paw, possibly getting the item trapped between two pads.
A noxious insect comes to mind.
I wonder if they make the dog medicine taste awful to discourage the dog from licking it off.