Updated

Ian Kennedy pitched six innings and Xavier Nady and Ryan Roberts hit consecutive homers to help the Arizona Diamondbacks beat the Los Angeles Dodgers 4-1 Sunday.

Kennedy (4-1) allowed a run and four hits, struck out eight and walked one to help the Diamondbacks win a series at Dodger Stadium for the first time since a three-game sweep in August 2007.

The right-hander, who has a 1.50 ERA over his last six starts, was coming off three straight no-decisions after beating Philadelphia 4-0 for his first big league shutout.

Esmerling Vasquez and David Hernandez each pitched a scoreless inning and J.J. Putz got three outs for his ninth straight save.

Ted Lilly (3-4) gave up four runs and five hits over six innings and struck out five. The 35-year-old left-hander, coming off a 10-3 win at Pittsburgh last Tuesday, has yet to win consecutive starts this season after going 7-4 in 12 outings following a trade last July 31 from the Chicago Cubs.

The Diamondbacks, held to just one hit in Saturday's 1-0 victory over Chad Billingsley, scored all of their runs in the second inning.

It snapped a string of 22 consecutive innings by Dodgers starting pitchers without allowing an earned run — not counting the two scoreless innings by Jon Garland that were washed away by the rain in Pittsburgh on Thursday.

Nady and Roberts both homered into the left field bullpen after a leadoff walk to Stephen Drew. The next batter, Miguel Montero, was hit with an 0-1 pitch and Gerardo Parra followed with a bunt single. Both runners advanced on Kennedy's bunt, and Chris Young capped the rally with a sacrifice fly.

Lilly plunked Montero again in the third inning, loading the bases after a two-out walk to Roberts, but Parra flied out. Montero, who had never faced Lilly before in a regular-season game, had not been hit by a pitch in 133 plate appearances this season.

The Dodgers loaded the bases in the first with singles by Jamey Carroll and Aaron Miles, a double-steal on Kennedy's strikeout of Andre Ethier, and a walk to Matt Kemp. But James Loney flied out to shallow center field and Dioner Navarro struck out, making the Dodgers 3 for 30 with the bases loaded.

Miles, who had three of the Dodgers' six hits, got Los Angeles on the board in the third with an RBI single.

Manager Don Mattingly, who hasn't had many options on the bench to go to because of injuries to third baseman Casey Blake, shortstop Rafael Furcal and outfielder Marcus Thames, used three straight pinch-hitters in the seventh who came in with a cumulative batting average of .194 — Juan Uribe, Jay Gibbons and rookie Jerry Sands.

Notes: Dodgers RF Andre Ethier, whose 30-game hitting streak ended on May 7 at New York, was 0 for 4 after reaching base either by a hit or a walk in 37 straight contests. He was 1 for 11 in the series with a run-scoring infield single. ... Roberts, who missed the previous two games because of flulike symptoms, did not have an RBI in 47 career at-bats against the Dodgers before his home run. ... Nady struck out three straight times after his home run. ... The Dodgers' bullpen took another hit on Sunday when RHP Blake Hawksworth was placed on the 15-day disabled list because of a groin strain. RHP Javy Guerra made his major league debut with a scoreless ninth after getting promoted from Double-A Chattanooga. ... Utility INF Juan Castro, in his fourth stint with the Dodgers at age 38, made his season debut and started at 3B for the first time since June 26, 2010 with the Phillies.