If your dog is bleeding from the rectum then you should take your dog to the vet because bleeding out the rectum usually means that the dog has some parasites eating their intestines and that's what usually causes the bleeding.
Your dog could likely have deadly worms in it's system and could die if not treated asap.