MK Dons will host rivals AFC Wimbledon in the first round of the FA Cup.
The all-League Two affair will see the sides go head to head at Stadium MK next month, having already faced each other in the league this season, Wimbledon winning 3-0.
League One leaders Birmingham were drawn away to National League Sutton, while Wrexham, second in the table behind Blues, will travel to Harrogate.
Bristol Rovers will host near neighbours Weston-super-Mare of the National League South.
National League North side Curzon Ashton will host Mansfield, who sit third in League One, while League Two leaders Port Vale were drawn at home to Barnsley.
Eighth-tier Hednesford are the lowest-ranked side left in the competition and face Gateshead in a replay on Tuesday for the right to face either Gainsborough or Boston.
Harborough’s victory over Bury on Saturday earned the seventh-tier side a spot in the first round for the first time and they will face a trip to Tonbridge Angels.
Maidstone, who reached the fifth round last season, will come up against National League opposition in either Altrincham or Solihull Moors and Tamworth face League One Huddersfield.
The ties will be played from November 1-4.
FA Cup first-round ties in full:
Rotherham v Cheltenham
Barrow v Doncaster
Worthing v Morecambe
Boreham Wood v Leyton Orient
Exeter v Barnet
Carlisle v Wigan
Tamworth v Huddersfield
Hartlepool/Brackley v Braintree
Curzon Ashton v Mansfield
Wycombe v York
Bradford v Aldershot
Hednesford/Gateshead v Gainsborough/Boston
Burton v Scarborough
Tranmere v Oldham
Rochdale v Bromley
Walsall v Bolton
Grimsby v Wealdstone
Bristol Rovers v Weston-super-Mare
MK Dons v AFC Wimbledon
Altrincham/Solihull Moors v Maidstone
Stockport v Forest Green
Reading v Fleetwood
Stevenage v Guiseley
Northampton v Kettering
Rushall/Peterborough Sports v Accrington
Swindon v Colchester
Salford v Shrewsbury
Crewe v Dagenham
Port Vale v Barnsley
Chesham v Lincoln
Chesterfield v Horsham
Southend v Charlton
Notts County v Alfreton
Taunton /Maidenhead v Crawley
Harrogate v Wrexham
Woking v Cambridge
Gillingham v Blackpool
Tonbridge Angels v Harborough
Sutton v Birmingham
Newport v Peterborough