A double from Joss Labadie
gave the Daggers a welcome victory and eased the pressure off the foot of the table.
It was only the second time in nine matches the Daggers had enjoyed a win at Victoria Road and no one can claim they did not deserve it.
It was by no means a classic, and not one for the purist. But the performance lacked nothing in energy and desire.
As pleasing as the three points were for manager Wayne Burnett it was also the fact the Daggers kept a rare clean sheet.
A defence renowned for conceding goals from set pieces kept the door shut this time. But they did allow York two free headers from corners which the visitors failed to take advantage of.
The prospect of a welcome home success affected the Daggers towards the end, when they became indecisive for a spell and dropped too deep, inviting pressure.
But although York had more of the ball they still produced nothing to trouble 'keeper Mark Cousins
The Daggers seemed to have things under control and it was no more than they deserved when man of the match Labadie gave them the lead in the 35th minute.
set it up with a surge down the left, Jamie Cureton
flat footed the York defence by letting the ball run and Labadie steered home a low left footer.
He struck again in the 62nd minute, meeting a free kick from Chambers with a close range header.
In view of the fact York were offering little in return that proved to be the killer blow. But it would not be the Daggers if they did not make hard going of it and they failed to build on their undoubted supremacy.
But this win lifted them a couple of places up the table and Burnett will be happy with the way things turned out.
Dagenham & Redbridge: Cousins, Batt, Connors, Saah, Partridge, Labadie, Boucaud, Ogogo (c), Howell (Hemmings 78), Chambers (Porter 85), Cureton (Yusuff 90).
Unused substitutes: O’Brien, Doe, Green, Goldberg.
Attedance: 1,801 (335 away)