Enrique Hernandez hit his sixth career leadoff home run, Justin Turner added a solo shot and the Los Angeles Dodgers beat the Arizona Diamondbacks 3-2 Tuesday night.

Hernandez hit a 0-2 pitch out to left off Robbie Ray (5-5) to open the game and Turner hit his off the left-hander in the sixth inning. Chris Taylor drove in the go-ahead run on a double two batters later.

Julio Urias (4-2) allowed a hit in three innings in relief of Ross Stripling, who was on a limited pitch count in his return to the rotation. Kenley Jansen worked around Nick Ahmed's two-out single and stolen base in the ninth for his 23rd save.

Los Angeles Dodgers first baseman Matt Beaty, middle, tosses the ball to Dodgers starting pitcher Ross Stripling (68) to get Arizona Diamondbacks' Eduardo Escobar out at first base as Dodgers' Austin Barnes (15) looks on during the third inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

Los Angeles Dodgers first baseman Matt Beaty, middle, tosses the ball to Dodgers starting pitcher Ross Stripling (68) to get Arizona Diamondbacks' Eduardo Escobar out at first base as Dodgers' Austin Barnes (15) looks on during the third inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

The NL West-leading Dodgers have won seven of eight.

David Peralta had run-scoring hits in the first and third innings for the Diamondbacks. Ketel Marte went 2 for 4 for his eighth straight multi-hit game, breaking Luis Gonzalez's team record set in 2001.

Arizona has lost seven of nine.

Los Angeles Dodgers starting pitcher Ross Stripling throws against the Arizona Diamondbacks during the first inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

Los Angeles Dodgers starting pitcher Ross Stripling throws against the Arizona Diamondbacks during the first inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

Ray gave up the leadoff homer to Hernandez, but held the Dodgers without a hit over the next four innings despite running up his pitch count.

The left-hander ran into trouble in the sixth inning as Turner hit his to left, and consecutive doubles by Alex Verdugo and Taylor put the Dodgers up 3-2.

Ray allowed three runs and four hits, while striking out nine in 6 1/3 innings.

Arizona Diamondbacks starting pitcher Robbie Ray throws against the Los Angeles Dodgers during the first inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

Arizona Diamondbacks starting pitcher Robbie Ray throws against the Los Angeles Dodgers during the first inning of a baseball game, Tuesday, June 25, 2019, in Phoenix. (AP PhotoRoss D. Franklin)

Stripling started the season in the rotation before being bumped to the bullpen when Rich Hill returned from a knee injury in April. The right-hander was solid as a starter his previous go-round, going 1-1 with a 2.65 ERA.

Dodgers manager Dave Roberts wanted to limit Stripling's pitch count in his return to the rotation after another Hill injury, so he was pulled after allowing two runs on four hits in three innings.

TRAINER'S TABLE

Dodgers: SS Corey Seager is progressing in his return from a hamstring injury and took some groundballs on Monday, but no timetable has been set for his return.

Diamondbacks: INF Jack Lamb (quadriceps) completed his rehab and was in Arizona's clubhouse on Tuesday. The Diamondbacks did not say when he will be activated.

UP NEXT

Dodgers THP Tony Gonsolin will make his major league debut in the series finale on Wednesday. Arizona RHP Taylor Clarke allowed three runs on four hits to lose his first career start against the Dodgers on June 4.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_