It is always advised to consult a doctor before giving anything to your dog in pain, but in an emergency, you can give some turmeric and hot and cold therapies for quick relief.