Check out this link which might help you to recognize kennel cough vs reverse sneezing or collapsed trachea:
http://www.yorkietalk.com/forums/yor...d-trachea.html
One of my pups has reverse sneezing which sounds somewhat like your dog, only it's more of a honking sound to me than hacking.