PHOENIX -- Paul Goldschmidt's first career walk-off hit was not exactly one for the highlight reel, but it was what Arizona needed to overcome Josh Beckett.
Goldschmidt's spinning ground-ball single through the right side of the infield drove in A.J. Pollock from second base in the ninth inning for a 1-0 victory over Beckett and the Los Angeles Dodgers.
"Luckily I just found a hole," Goldschmidt said. "It wasn't a bad swing, but I was way out in front. I capped it off the end of the bat, and luckily it kind of spun away from their second baseman and got through the hole. I'll take it."
Pollock doubled to left-center field with one out in the ninth inning, hustling into second base ahead of Carl Crawford's throw. Beckett intentionally walked Miguel Montero after throwing balls on the first two pitches. That brought up Goldschmidt.
D-backs manager Kirk Gibson told someone on the bench he hoped "this is one of those (expletive) hits. He hit it in the right spot."
"Very good game. Very good series. Very good team. That is the way it is going to be when we play this year," Gibson said.
Beckett (0-2) had his first complete game since June 15, 2011, when he threw a one-hit shutout in a 3-0 victory over Tampa Bay. He gave up six hits, struck out nine and had the one intentional walk Sunday.
"That was electric today. Not only his velocity but his change was good," Dodgers manager Don Mattingly said, adding that he had no compunction about leaving Beckett in for the ninth. "It was a no-brainer. It wasn't even hard. There was no question. It was his game."
Beckett threw 102 pitches, 72 strikes.
"If a guy is throwing the ball well through eight innings and hasn't given up a run, I don't care who it is," Beckett said, "they earned the right to go back out there unless they have too many pitches."
Goldschmidt and Cliff Pennington had two hits apiece. Closer J.J. Putz pitched the ninth inning for his first victory of the season.
Dodgers first baseman Adrian Gonzalez had his second straight three-hit game. He homered, singled twice and drove in two runs in a 7-5 victory Saturday, the only Dodgers victory in the three-game series. He is hitting .409.
D-backs starter Trevor Cahill gave up six hits while striking out four and walking none in 7 1/3 innings, what has become a normal outing against Los Angeles.
Cahill was 3-0 in five starts against the Dodgers last season, his first with the D-backs. He never allowed more than three runs in any appearance, and four were quality starts. He also beat the Dodgers in his only start against them while with Oakland in 2009.
"Beckett was throwing a good game, and I knew a run might be a deciding factor," Cahill said. "When a guy is throwing like that, you just do your best to match him."
The Dodgers had their best scoring chance in the eighth inning when Nick Punto singled and was sacrificed to second by Beckett. Left-hander Tony Sipp replaced Cahill and retired Crawford on a groundout before Brad Ziegler came in to get Mark Ellis to ground out to end the inning.
NOTES: LHP Ted Lilly has declined the Dodgers' request to continue his rehab assignment, feeling he is ready to join the big club after two previous rehab appearances. "We laid out a plan, and Teddy doesn't want to be a part of the plan. We felt like he needed to go out. We didn't feel like he was ready to pitch" in the major leagues, Mattingly said. The Dodgers chose LHP Chris Capuano over Lilly to fill injured Zack Greinke's spot in the rotation Tuesday. Lilly, who missed four months last season after shoulder surgery, was placed on the disabled list retroactive to March 28 when the season opened. ... D-backs 2B Aaron Hill returned to the starting lineup Sunday but was replaced for a pinch-hitter in the fourth, before his second at-bat. He grounded out in the first inning. It was his first action since being hit by a pitch his left hand Tuesday. Hill had a pinch-hit, RBI double Saturday, his first plate appearance since the injury. X-rays after the game were negative, the D-backs said. Hill will be given an MRI today. ... Jackie Robinson's widow, Rachel, and his son, David, will attend Jackie Robinson Day at Dodger Stadium on Monday for the tribute to the player who broke the major league color barrier. The Dodgers also will pay tribute to Roy Campanella and Don Newcombe. Kelley Jacke, the great-granddaughter of Branch Rickey, will sing the national anthem. Rickey signed Robinson, who made his major league debut in 1947. ... D-backs outfielder Cody Ross was 0-for-3 in his first start of the season Sunday, a day after he was activated from the disabled list after suffering a left calf injury the first week in March.