Juan Pierre had four hits and scored a run for the Dodgers, who snapped a seven-game losing streak.
Starter Chad Billingsley (12-5) went 5 2/3 innings, yielding just one run on five hits, with six strikeouts and four walks.
Edgar Gonzalez (8-3) started and went just 3 1/3 innings for the Diamondbacks, giving up three runs on eight hits.
Boston schools pull out free condoms over wrapping complaints
Millions of Getty images now available for free via embed tool