Depends. How long have you had it?
A week or so I would try regular traditional OTC medicines. I have found the best one to be Delysm, humidifier, and lots o' lots o' fluids.
More than a week, severe hacking dry cough at night, then it may be that your airway is inflammed. This happens to my little guys whenever they get a cold.
You would need to see a doctor but a nebulizer treatment of Pulmicort (1st line treatment if you haven't used this type of medicine before) once a day and Albuetrol 1-4x a day clears them away right away and you don't need to use the medicine when your cough is better.