Very poor english translation. It should say , "do you have an earache?" Or " do you have a pain in your ear"
Perhaps... the grammar is correct and I could easily imagine my doctor asking me if I have ear pain. That, however, would certainly not be the common expression.
I concur with what has already been stated by the other Duolingo users. In (American) English, we say "Do you have an earache?" OR "Do you have pain in your ear?"