Thanks for writing to us.
Pain at the region of nostrils as well as in gum line at the same time may be due to-
Abscess developed either due to decay or due to periodontal infection
I would suggest you to get a thorough clinical evaluation done.
Abscess if present,has to be drained and curetted.
Get scaling done.
Maintain oral hygiene
Take ciplox as well as diclofenac tablets after consulting with your dentist
If symptoms persists,please do visit an ENT specialist