Cody Eakin scored 2:18 into overtime and the Dallas Stars beat the New York Islanders 3-2 on Tuesday night to snap a six-game losing streak.

Eakin took a pass from Jamie Benn on a 2-on-1 break and beat goalie Jaroslav Halak. The goal gave the Stars their first overtime victory in eight games this season.

Anders Lee tied it for New York with 2 seconds remaining in regulation when his shot from the left-wing boards hit defender Jordie Benn's skate and eluded goalie Kari Lehtonen.

Josh Bailey scored for the Islanders in the first period.

Brett Ritchie and Vernon Fiddler scored on third-period rebounds as Dallas rallied for a 2-1 lead. Lehtonen made 35 saves for the Stars, who were 0-4-2 in their previous six games.

Halak stopped 32 shots but the Islanders lost their second consecutive game. They lead the Metropolitan Division by one point over the rival New York Rangers, though the Rangers have three games in hand.

The Islanders killed off a 5-minute power play following Matt Martin's major penalty and game misconduct at 1:48 for kneeing Dallas' Trevor Daley, who left the ice and did not return.

Bailey scored at 15:25 of the first period. Brock Nelson, left alone behind the net near the left corner, passed across to Ryan Strome, unattended on the right side. He passed out front to Bailey, who shot across Lehtonen's body into the upper left of the net.

New York outshot the Stars 18-9 in the first.

Lehtonen stopped Bailey on a close-in attempt during the second period, and again on a backhand in the third.

Dallas outshot New York 13-9 in the second.

There was so much pressure on Halak that New York took two delay-of-game penalties in the final 6 minutes, and successfully killed both.

The Stars' push continued into the third period. They tied the game 1-all at 2:24 when Ritchie put in the rebound of Jyrki Jokipakka's shot off Halak's pads.

Fiddler scored at 7:28. Ryan Garbutt's shot from the high slot hit the glass behind the net and bounced out on the left side. Fiddler put the puck behind Halak.

Neither team scored on the power play. Dallas was 0 for 5, and New York was 0 for 3.

NOTES: Stars rookie D Patrik Nemeth returned after missing 52 games because of a cut on his arm. . Islanders C Tyler Kennedy, acquired Monday in a trade from San Jose, did not dress. G Michal Neuvirth, traded at the deadline from Buffalo, did not play. . New York killed off 23 of 27 penalties (85 percent) in the previous 10 games. . The Islanders had won three in a row against Dallas. . Lehtonen allowed 14 goals in his previous three games — all losses, two in overtime.