While some coughing is normal in dogs, especially if it can be attributed to eating or drinking too quickly, excessive coughing and hacking with no obvious reason can be a sign of a potentially dangerous disease.
Several conditions can cause your dog to cough and/or hack: Kennel cough. Tracheal collapse.