Updated

Trevor Cahill allowed just one run over 5 1/3 innings to lead the Arizona Diamondbacks past the Los Angeles Dodgers, 2-1, on Monday.

Cahill (7-10) allowed just two hits, walked four and struck out four to get the win.

Paul Goldschmidt hit a two-run homer for the Diamondbacks, who were held to just two hits.

Brad Ziegler stranded a pair of runners in the ninth to pick up his 11th save of the season.

Hyun-Jin Ryu (13-7) was the hard-luck loser, giving up just two hits, including Goldschmidt's homer, over eight brilliant innings.

"I threw 100 pitches but that one pitch was the decision-maker of the game," Ryu said. "It was an error on my part. I believe no matter how good a pitch it was, if it is a home run, it's a mistake."

Yasiel Puig drove in the lone run for the Dodgers, who hold a healthy 9 1/2 game lead over Arizona atop the NL West standings.

Matt Kemp was activated from the disabled list earlier on Monday. Although not in the starting lineup, Kemp came to the plate in a key spot with runners on second and third and two outs in the ninth inning. Kemp, however, struck out to leave the go-ahead run on second base.

Kemp had been on the DL since July 21 with a sprained left ankle.

Goldschmidt got the D'backs on the board in the first inning. A.J. Pollock worked a leadoff walk, and two batters later, Goldschmidt launched his 33rd homer of the season over the wall in center.

"He threw a fastball first pitch and I was looking for something over the plate," Goldschmidt said. "(Ryu) pitched great."

Ryu drew a leadoff walk in the sixth and moved to third on Nick Punto's double. After Mark Ellis walked and Adrian Gonzalez flew out, Puig drew a walk to force home Ryu.

Game Notes

Cahill is 6-0 lifetime against the Dodgers ... Goldschmidt has homered in back-to-back games for the sixth time this season ... Goldschmidt leads the NL with 116 RBI ... Ryu has two complete games this season ... Punto finished the game 2-for-4.