Derby County will travel to Torquay United or Hampton & Richmond in the first round of the FA Cup.
As a result of their relegation from the Championship last season, the Rams enter this stage of the competition for the first time since the 1985-86 campaign.
Paul Warne's side, who sit in ninth position in League One, have been provided with a trip to Torquay, bottom of the National League, or Hampton & Richmond who are 18th in the National League South.
Meanwhile, Ipswich Town will make the trip to Southern League side Bracknell Town, while Charlton Athletic will face Notts County's conquerors Coalville Town.
Sheffield Wednesday will play host to Morecambe, with Plymouth Argyle being provided with a lengthy trip to Grimsby Town.
In an eye-catching draw, Hereford square off against Portsmouth, while Alvechurch will make the short trip to face League One side Cheltenham Town.
Southern Premier side Needham Market will go up against Burton Albion on away territory, while a South Shields side managed by Sunderland legend Kevin Phillips will host Forest Green Rovers.
The pick of the all-EFL sides sees Peterborough United play at home against Salford City.
Draw in Full:
South Shields vs. Forest Green Rovers Bolton Wanderers vs. Barnsley Boreham Wood vs. Eastleigh Curzon Ashton vs. Cambridge United Maidenhead United vs. Dagenham & Redbridge Crawley Town vs. Accrington Stanley Solihull Moors vs. Hartlepool United Kidderminster Harriers/AFC Fylde vs. Gillingham Peterborough United vs. Salford City Sutton United vs. Farnborough Grimsby Town vs. Plymouth Argyle MK Dons vs. Yeovil Town/Taunton Ebbsfleet United vs. FC Halifax Town Carlisle United vs. Tranmere Rovers Bracknell Town vs. Ipswich Town Hendon/Chippenham Town vs. Lincoln City Sheffield United vs. Morecambe Hereford vs. Portsmouth Shrewsbury Town vs. York City Buxton vs. Merthyr Town Charlton Athletic vs. Coalville Weymouth vs. AFC Wimbledon Newport County vs. Colchester United Stockport County vs. Swindon Town Doncaster Rovers vs. King's Lynn Town Altrincham/Gateshead vs. Stevenage Fleetwood Town vs. Oxford City Burton Albion vs. Needham Market Bradford City vs. Harrogate Town Port Vale vs. Exeter City Torquay United/Hampton & Richmond vs. Derby County Bristol Rovers vs. Rochdale Wycombe Wanderers vs. Walsall Blyth Spartans/Wrexham vs. Oldham Athletic/Chester FC Crewe Alexandra vs. Leyton Orient Barnet vs. Chelmsford City Woking vs. Oxford United Chesterfield vs. Northampton Town Cheltenham vs. Alvechurch Barrow vs. Mansfield Town