Jonathan Boardman's double was enough to see Dagenham & Redbridge edge past York in a pulsating win and keep the leaders 10 points ahead of Oxford.
Dagenham went ahead on 23 minutes when Boardman rose to send a header past Tom Evans after Sam Saunders had crossed.
Boardman netted his second after 54 minutes, meeting Saunders' inswinging corner with another thumping header.
York reduced the deficit when Neal Bishop stroked the ball home after Steve Bowey's shot had been parried.
Dag & Red: Roberts, Foster , Boardman, Uddin, Griffiths, Saunders (Wallis 80), Leberl, Southam, Sloma (Lawson 73), Benson, Strevens (Moore 88).
Subs Not Used: Eyre, Lettejallow.
Goals: Boardman 23, 55.
York: Evans, Craddock, Parslow, Lloyd (Peat 65), McGurk, Bishop, Panther, Bowey (Elvins 81), Farrell, Brodie (Woolford 57), Donaldson.
Subs Not Used: Reid, McMahon.
Goals: Bishop 62.
Ref: S Cook (Surrey).