Head shaking is not normal behavior in dogs, especially if you do not know the cause. While it can occasionally happen, if your pup keeps shaking his head time and again, something might be wrong, and you should take him to the vet.
8