My little yorkie keeps scratching his ear it's red now and shaking his head. He has a little crust in the tip of his ear. What is wrong with him. I'm a new pet owner so i'm clueless

about this stuff. Please tell me it's not allergies because i just had a problem with that a month ago. I would really appreciate any answers.