Dunlap went 5 for 6 with a homer, double and three singles while Quinn Brodey finished 3 for 6 with a homer, triple, and double and five runs batted in to help the Cardinal (28-22, 12-14 Pac-12) outlast the Huskies (30-19, 15-11) in a wild four hour 31 minute affair that got delayed until 3:30 p.m. by rain.
After Mikey Diekroeger grounded out to first to start the 12th, Dunlap drove a 1-2 pitch from Ryan Schmitten (1-3) into the visitors bullpen in left field for his third homer of the season.
The Huskies did not go away quietly in the bottom of the 12th, getting to runners on base on an infield single by K.J. Brady and a walk to pinch hitter Willie MacIver, but Levi Jordan flied out to left to finally send home what remained of the announced 719 fans in attendance.
Tyler Thorne (3-2) got the win in relief, allowing four runs, all earned, on six hits and six walks. He struck out three.
The Huskies took a 7-5 lead into the top of the ninth with Troy Rallings seeking to become the all time Washington career record holder in saves, breaking the mark he currently shares with Brett Merrick (1993-1995) at 31. Instead he suffered his second blown save of the season.
Matt Winaker lined a single to left center to start the inning. Nico Hoerner walked, and after a fielder's choice put runners at first and third, Brodey plated them both with a triple down the right field line to tie the game and send the game into extra innings.
Stanford took a 1-0 lead in the top of the second with one out when Diekroeger took Husky starter Joe DeMers deep over the 365 marker in left field for for his fourth homer of the season and second of the series.
In the top of the fourth, the visitors made it 2-0 when Dunlap singled, advanced to third on a double by Austin Barr, and scored on an error by Kyle London.
Washington got even at 2 in the bottom of the fifth on a single by Joey Morgan and Jordan's first homer of the season, a shot over the wall in left field next to the scoreboard.
The teams traded home runs in the sixth for a 3-3 tie. Brodey went deep for the seventh time this season in the top of the inning but London answered with his first of the season, a shot over the left field bullpen, for the Huskies.
Brodey then put Stanford back on top 5-3 in the seventh with a two run double off London's glove in left center, but again in their next at bat the Huskies tied the game again. M.J. Hubbs scored on an RBI groundout by London and Jordan scored on a line single to right center by Jack Meggs.
The home team then gave Rallings a chance to make Husky history when they scored twice in the bottom of the eighth to take a 7-5 lead.
Brady led off with a walk , took second on a sacrifice, and scored on a base hit through the hole on the left side for 6-5. Following a walk to Hubbs, Jordan drove in pinch runner Rex Stephan with a line single to right center. For the game Jordan went 4 for 6 with two runs scored and three RBI.
The two teams return to Husky Ballpark for the series finale and Washington's final home game of the season on Sunday at 12:00 noon. Prior to the game the Huskies will honor six seniors making their final home appearance: Will Ballowe, Duncan Hendrickson, Spencer Jones, Alex Nesbitt, Troy Rallings and Ryan Schmitten.