Photographing lightning is a guessing game. You need to use a tripod and a long exposure with your DSLR. Set up your composition and start with 15-30 second exposures. If your camera has a bulb setting then use that so the shutter can open for as long as the button is pressed. Be careful with camera shake as it will cause blurry photos.