Ben Strevens' late header clinched Eastleigh a 3-2 win at Wrexham and their sixth league victory of the season.
Midfielder Strevens headed home Andy Drury's cross in the 86th minute to inflict on Wrexham their first home league defeat of the season after the home side had fought back from two goals down.
Jai Reason gave Eastleigh a 20th-minute lead with a fine low shot from outside the penalty area into the bottom corner and Drury's spectacular strike from similar distance doubled the visitors' advantage five minutes before the break.
Wrexham reduced the deficit in the 54th minute when striker Wes York drilled home an angled shot and the Dragons levelled the scores with 15 minutes left thanks to defender Sean Newton's header.
But Eastleigh clinched all three points when Drury crossed for Strevens to head home into the top corner from 12 yards and Wrexham's misery was compounded when defender Jamal Fyfield was sent off for a second bookable offence in the last minute.