Welcome to HEALTHCARE MAGIC..
I have gone through your query and can understand your concerns..
As per your complain large painful knots behind the ear along with pain in ear can be due to Infection of Mastoid process
known as Mastoiditis
along with ear infection
The painless knot on the palate just behind front teeth can be a Mucous cyst
The both conditions does not seems to be inter-related..
I would suggest you to consult an Otolaryngologist and get evaluated and a thorough clinical evaluation and investigations like Otoscopy of ear along with x ray, ear swab culture, MRI scan etc can help in diagnosis and treatment can be done accordingly..
You can be advised to take a course of antibiotics like Augmentin, anti inflammatory painkiller like Ibuprofen or Naproxen, do cool compresses and along with it do antibiotic ear drops and analgesic
Decongestant nasal sprays can further help..
For lump on palate consult an Oral Physician and get evaluated and a thorough clinical evaluation can help in diagnosis..
In case of mucocele, do concentrated salt water rinses..
In case if it does not resolve surgical correction can be advised..
Hope this information helps..
Thanks and regards.
Dr.Honey Nandwani Arora.