A peanut allergy would result in a rash, hives or itchiness.
What you say is happening is not an allergy.
If it was my dog I would determine what else he has eaten before. Additionally, it is odd to have a dod throw up just from smelling something so again figure out what he ate before. Your dog might be having eating indiscretions in your yard.