How long has it been that your dog did not pee, as it may be painful due to an infection, which in this case, you would have to get to a vet. If due to hot weather and is spending a lot of time in the sun, may be retaining water to prevent dehydration