Lemon and cranberry juice will help with urinary tract infections as a preventative in susceptible individuals but will not cure an active infection. Your dog's urine should really be checked for infection with a urinalysis.
Please bring a fresh urine sample to your vet for analysis. You may not even have to bring your dog in for an exam if the urine is positive for a simple urinary tract infection (an infection without crystals). The vet can simply give appropriate antibiotics.
If your dog has crystals in his urine, the crystals would need to be identified and treatment instituted. Crystals can be dangerous in male dogs because if they become large enough they can become lodged in the urethra and cause blockage (even in dogs, though more common in male cats). Most urinary tract infections do not involve crystals and can be successfully treated with antibiotics.
The Content on this Site is presented in a summary fashion, and is intended to be used for educational and entertainment purposes only. It is not intended to be and should not be interpreted as medical advice or a diagnosis of any health or fitness problem, condition or disease; or a recommendation for a specific test, doctor, care provider, procedure, treatment plan, product, or course of action. MedHelp is not a medical or healthcare provider and your use of this Site does not create a doctor / patient relationship. We disclaim all responsibility for the professional qualifications and licensing of, and services provided by, any physician or other health providers posting on or otherwise referred to on this Site and/or any Third Party Site. Never disregard the medical advice of your physician or health professional, or delay in seeking such advice, because of something you read on this Site. We offer this Site AS IS and without any warranties. By using this Site you agree to the following Terms and Conditions. If you think you may have a medical emergency, call your physician or 911 immediately.