Duns got off to a flying start by sailing into the lead in the fourth minute when Ethan Pollard cut in from the left flank to find the net with a sweetly struck angled drive.
United then showed what they had to offer with some enterprising attacks during which Ross Scott and Kevin Strathdee both came near to grabbing an equaliser.
After Dean Carruthers had blasted a shot wide at the other end, Duns keeper Phil Short pulled off a top notch save in diving to hold a Robbie Kelly shot at full strength.
United continued to push forward and Short put up the shutters again in keeping out a David Strathdee free kick.
Within minutes of this however United got their opener.
Having his last outing for the Hawick outfit before moving to New Zealand, Kelly produced the scoring touch in rattling home a pass from Kevin Strathdee for a fine equaliser. In the 63rd minute Kelly struck again when firing past Short following a thrusting run.
Apart from Jamie Lackenby being just off target with a free kick, Duns rarely looked like scoring and it came as no real surprise when United added to their tally in the 68th minute through a Scott strike.
After Kelly had squandered a chance to complete his hat trick by hitting a penalty wide, the ‘Dingers’ reduced the leeway in the 75th minute.
Steven Mitchell threaded a pass to the feet of Luke Turner who produced a spot on finish.
Boosted by this Duns began to strike for an equaliser and Matt Lawson came near to achieving this with an effort which went inches over the upright.
In the 82nd minute Kevin Strathdee put an end to any hopes of a Duns come back when tucking away a Daniel Bolton cut back.
Although the game was now as good as over there was more action to come in the closing stages.
United’s Michael Clark was red carded for making remarks towards the referee before Terry Storrie made it a nap hand for the home side in netting a penalty.