It sounds like your dog has an abscessed anal gland. This can be very painful to the dog. Your dog is licking it trying to express it. This has happened to my dog before in the past. You probably need to take your dog to the vet, if it's not too inflamed your vet may be able to express … Read more