The Iron were unseeded in the League Cup competition, and will travel to Pride Park during the week commencing August 13.
As this is before the start of the season, the game could also be played on Saturday 11 or Sunday 12.
Draw in full:
Derby County v Scunthorpe United
Rochdale v Barnsley
Port Vale v Burnley
Notts County v Bradford City
Hull City v Rotherham United
Fleetwood Town v Nottingham Forest
Carlisle United v Accrington Stanley
Doncaster Rovers v York City
Crewe Alexandra v Hartlepool United
Bury v Middlesbrough
Chesterfield v Tranmere Rovers
Sheffield United v Burton Albion
Blackpool v Morecambe
Leeds United v Shrewsbury Town
Preston North End v Huddersfield Town
Oldham Athletic v Sheffield Wednesday
Cheltenham Town v Milton Keynes Dons
Ipswich Town v Bristol Rovers
Stevenage v AFC Wimbledon
Exeter City v Crystal Palace
Yeovil Town v Colchester United
Birmingham City v Barnet
Bristol City v Gillingham
Northampton Town v Cardiff City
Plymouth Argyle v Portsmouth
Wolverhampton Wanderers v Aldershot Town
Walsall v Brentford
Millwall v Crawley Town
Torquay United v Leicester City
Dagenham & Redbridge v Coventry City
Peterborough United v Southend United
Swindon Town v Brighton & Hove Albion
Watford v Wycombe Wanderers
Charlton Athletic v Leyton Orient
Oxford United v AFC Bournemouth