PHOENIX (AP) — Paul Goldschmidt hit a game-winning single off Josh Beckett with one out in the ninth inning Sunday, lifting the Arizona Diamondbacks over the Los Angeles Dodgers 1-0.

Diamondbacks starter Trevor Cahill pitched six-hit ball for 7 1-3 innings and three relievers got the final five outs for Arizona, which shut out Los Angeles twice in taking two of three.

READ MORE: Laguna Hills Student Spouts Racial Slurs At Black Player

Beckett (0-2) retired Martin Prado on a grounder to short to start the ninth. A.J. Pollock followed with a double to center field. Beckett ran the count to 3-0 before walking Miguel Montero intentionally. Goldschmidt then singled to right field.

Tony Sipp and Brad Ziegler each retired one batter to finish the eighth after Nick Punto singled leading off and advanced on Beckett’s sacrifice.

J.J. Putz (1-0) walked one in the ninth.

Beckett, who had struggled at Chase Field throughout his career, allowed six hits and struck out nine over 8 1-3 innings, his longest outing since a complete-game shutout on June 15, 2011, for Boston against Tampa Bay.

Beckett entered with a 1-2 record and 5.16 ERA across 22 2-3 innings in Phoenix.

Cahill struck out four without walking a batter, the first time he’s pitched without a walk since September 12, a 3-2 win over the Dodgers.

READ MORE: Authorities Searching For Missing Teen Girl Allegedly Taken By Her Mother

The Dodgers’ best scoring chances against Cahill came in the seventh and eighth innings.

Adrian Gonzalez doubled off the center field wall — his third straight hit and sixth and his past seven plate appearances — leading off the seventh, Los Angeles’ first player to reach second base.

But Prado caught a looping line drive by Andre Ethier, A.J. Ellis flew out to center and Cahill induced Luis Cruz into a routine grounder to third to end the inning.

In the eighth, Punto singled and was bunted to second by Beckett. Cahill gave way to Sipp, who retired Carl Crawford on a grounder to first, and Ziegler, who forced Mark Ellis into a grounder to third to keep the game scoreless.

Arizona fared little better against Beckett, who allowed only Cliff Pennington to advance to third base over the first eight innings. He reach third twice. Pennington singled in the third and doubled in the fifth.

Matt Kemp went 0 for 4 with three strikeouts to drop his early-season batting average to .174.

MORE NEWS: Woman Details Encounter With Man Accused Of Killing Brianna Kupfer

(© Copyright 2013 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)