For a dry cough of more than 3 months, and in the absence of lung disease and cardiovascular disease, consider variant asthma, chronic bronchitis, gastro-oesophageal reflux, postnasal discharge drip, etc.
It is also important to consider environmental factors and find out if there are any irritating gases, pollen, etc. in your living and working environment and try to avoid irritation.