County crushed their non-League opponents to avoid a Cup upset.
Nick Fenton met Darren Caskey's free- kick to open the scoring before Clive Platt scored twice to make it 3-0.
Shildon battled back in the second half when James Middleton nodded home, and Gary Barnes scored from the spot.
But then Kevin Nicholson headed County 4-2 ahead before Ian Richardson, a Tony Barras header and Paul Heffernan extended the Magpies' advantage.
Notts County: Mildenhall, Jenkins, Fenton, Barras, Baraclough,
Baldry, Caskey, Richardson, Riley, Stallard, Platt. Subs:
Garden, Heffernan, Nicholson, Brough, Francis.
Shildon: Jackson, Hainsworth, Middleton, Liddle, Walton,
Bolton, Key, Bayles, Emmerson, Ellison, Barnes. Subs: Owers,
Tobin, Chapman, Reid, Richmond.
Referee: A Marriner (W Midlands)