League Two side Rochdale will visit the Keepmoat in the first round of the Capital One Cup.
Rovers will host Keith Hill’s side the week commencing August 5 in what could be Paul Dickov’s first competitive home game in charge of the club.
The last meeting between the two sides came in the League Cup in August 2006 at Belle Vue with Rovers coming from behind to win 3-2 with a Mark McCammon brace plus a James Coppinger strike.
Elsewhere in the first round draw, a mouthwatering all-South Yorkshire tie cropped up sending Sheffield Wednesday to Rotherham United.
Draw in full: Bury v Crewe Alexandra; Shrewsbury Town v Bolton Wanderers; Middlesbrough v Accrington Stanley; Doncaster Rovers v Rochdale; Preston North End v Blackpool; Barnsley v Scunthorpe United; Tranmere Rovers v Mansfield Town; York City v Burnley; Notts County v Fleetwood Town; Sheffield United v Burton Albion; Oldham Athletic v Derby County; Carlisle United v Blackburn Rovers; Morecambe v Wolverhampton Wanderers; Nottingham Forest v Hartlepool United; Leeds United v Chesterfield; Huddersfield Town v Bradford City; Rotherham United v Sheffield Wednesday; Port Vale v Walsall; Gillingham v Bristol City; AFC Bournemouth v Portsmouth; Wycombe Wanderers v Leicester City; Brentford v Dagenham and Redbridge; Exeter City v Queens Park Rangers; Charlton Athletic v Oxford United; Southend United v Yeovil Town; Millwall v AFC Wimbledon; Swindon Town v Torquay United; Birmingham City v Plymouth Argyle; Stevenage v Ipswich Town; Cheltenham Town v Crawley Town; Bristol Rovers v Watford; Northampton Town v Milton Keynes Dons; Leyton Orient v Coventry City; Colchester United v Peterborough United; Brighton and Hove Albion v Newport County.