PHOENIX -- Ian Kennedy has been maddeningly inconsistent in the follow-up year to his 21-win season.
His performance Tuesday night was a reminder of how good he can be.
With San Francisco's win at Colorado, the Dodgers fell six games behind the first-place Giants in the NL West. Arizona ended a six-game home losing streak.
Kennedy (13-11) gave up four hits in 7 1/3 innings, striking out six and walking none.
"Really what made my fastball better was the execution of my off-speed pitches," Kennedy said. "I was throwing those for strikes, and when you do that, it's going to be a good game -- at least you give your team a chance. You've got to against Kershaw; he's one of the best pitchers in the game."
Kershaw (12-9) allowed three hits, striking out five and walking three in seven innings.
"I blinked first tonight," Kershaw said. "I threw a pitch I shouldn't have. I didn't put it where I wanted to and Miguel did a good job with it and made me pay for it. You can't blink first in those games and I did."
Montero said he hit a slider a little over the plate. It was about the only hard-hit ball off of Kershaw.
"That was the best he's looked in the times we've faced him this year," Montero said. "He had everything going. I ran into one pitch and that was the difference. But his stuff was very, very good."
Kershaw is 0-3 in his past three starts despite allowing a combined three earned runs. The Dodgers have lost all three games.
"It hurts when he pitches so good and we don't get a win," Los Angeles manager Don Mattingly said.
But, Kershaw said, "They all hurt the same right now."
Regular closer J.J. Putz, who blew consecutive saves last week, was out with a stiff back, manager Kirk Gibson said, so David Hernandez came on in the ninth. He gave up a two-out double to Shane Victorino, then Adrian Gonzalez struck out looking, staring at home plate umpire Dan Iassogna after the pitch.
Kennedy got big defensive plays from third baseman Chris Johnson and second baseman Aaron Hill. Johnson nabbed Kershaw's sharp line drive in the sixth and Hill made a lunging grab on Andre Ethier's liner leading off the seventh.
Kennedy, a 21-game winner a year ago, left after giving up a single to Luis Cruz. Brad Ziegler came on and got a double-play grounder to end the inning. Ziegler has induced major league-best 17 double plays, most by a National League reliever since Jeremy Affeldt's 18 in 2009.
Goldschmidt reached for the third time when Ramirez's throw on a deep ground ball bounced in front of first base and Gonzalez couldn't handle it. Montero followed with the double to deep right-center that easily scored Goldschmidt, who had been picked off at first by Kershaw in the second.
Montero advanced to third on a passed ball and tried to score on Johnson's fly ball to center. But Matt Kemp's throw arrived first and Montero was out on a close play, ending the inning.
The Dodgers got a runner to second when Ethier doubled to left-center with two outs in the fifth. On the next pitch, Cruz launched one to deep left but Kubel, backtracking in a hurry, made a leaping grab at the wall to rob him of what would have been a two-run homer, and the game remained scoreless.
"I wasn't sure if it was going to get out or not, but thankfully it hung up a little bit so I could get under it," Kubel said. "It was fun. I'm just happy it worked out, and thankfully it saved us a couple of runs. It could have been 2-1, who knows?"
Kemp doubled with two outs in the seventh but was stranded after Ramirez's check-swing dribbler to the pitcher.
Arizona had last won at home on Aug. 22, when it swept a doubleheader from Miami. ... Kershaw leads the NL with 206 strikeouts. ... Los Angeles starts Aaron Harang (9-8, 3.75 ERA) in the finale of the brief series while Arizona goes with Trevor Cahill (10-11, 3.98). ... Goldschmidt's single in the fourth was his first hit against Kershaw in 10 at-bats. ... Arizona improved to 11-6 against the Dodgers this season with one game remaining.
Trout plays full game a day after landing rich deal
Angels manager Brad Ausmus likes to have his regulars play nine innings at least once in a spring training game and on Thursday, it was Mike Trout's turn against the Arizona Diamondbacks.
Pence makes Rangers' roster to start season
Veteran outfielder Hunter Pence, who went to spring training with the Rangers on a minor league contract, will be on the 25-man roster as the team's fourth outfielder on Opening Day.
Mets get all their offense from homers in win vs. Marlins
Brandon Nimmo hits two home runs and drives in four runs as Michael Conforto's hits a 2-run shot in the Mets' 6-0 win vs. the Marlins.
Mazzilli improving after being struck by foul ball
Yankees guest instructor Lee Mazzilli will remain hospitalized until at least Friday as a precaution after being struck on the head by a batted ball during batting practice on Wednesday.
Harper hits first home run as a Phillie
Bryce Harper launches a home run deep to right field, his first as a member of the Philadelphia Phillies.
Harper hits 1st Grapefruit League HRs with Phils
Bryce Harper hit his first two spring training home runs as a member of the Phillies on Thursday, ending the day 2-for-3 with a walk and a strikeout.