Your dog has an infection, which can be very serious. Take it to the vet to see what the infection is. Many infections are serious and need to be treated with antibiotics.
A dog's temperature should be between 101°F and 102°F. If it's 103 or 104 he should be ok, he might just have a cold, but keep an eye on it. If it goes up more or doesn't go down, take them to a vet.