Four-time champions Wolverhampton Wanderers have been drawn away to Oldham Athletic in the first round of the FA Cup.
Former winners Portsmouth face a trip to League One side Stevenage, while Rotherham United play host to Bradford City.
Coventry City, who won the tournament in 1987, travel to AFC Wimbledon, and there is an away tie for Sheffield United at Colchester United.
The draw's lowest-ranked team Daventry Town have been given a trip to League Two Chesterfield.
All ties will be played in the weekend of November 9.
FA Cup first-round draw in full:
Morecambe vs. Southend United
Walsall vs. Shrewsbury Town
Boreham Wood vs. Carlisle United
St Albans City vs. Mansfield Town
MK Dons vs. FC Halifax Town
Bristol Rovers vs. York City
Tamworth vs. Cheltenham Town
Grimsby Town vs. Scunthorpe United
Bury vs. Cambridge United
Corby Town vs. Dover Athletic
Colchester United vs. Sheffield United
Oxford United vs. Gateshead
Hartlepool United vs. Notts County
Wrexham vs. Alfreton Town
Chesterfield vs. Daventry Town
Bristol City vs. Dagenham & Redbridge
AFC Wimbledon vs. Coventry City
Preston North End vs. Barnet
Bishop's Stortford vs. Northampton Town
Burton Albion vs. Hereford United
Rotherham United vs. Bradford City
Gillingham vs. Brackley/Barrow
Salisbury vs. Ebsfleet/Dartford
Accrington Stanley vs. Tranmere Rovers
Brentford vs. Staines Town/Poole Town
Stevenage vs. Portsmouth
Shortwood United/Aldershot vs. Port Vale
Leyton Orient vs. Southport
Peterborough United vs. Exeter
Torquay United vs. Rochdale
Braintree Town vs. Newport County
Oldham Athletic vs. Wolverhampton Wanderers
Worcester City/Lincoln City vs. Plymouth Argyle
Bradford Park Avenue/Kidderminster Harriers vs. Hemel Hempstead Town/Sutton United
Hednesford Town vs. Crawley Town
Stourbridge vs. Biggleswade Town
Welling United vs. Luton Town
Macclesfield Town vs. Swindon Town
Wycombe Wanderers vs. Crewe Alexandra
Gloucester City vs. Fleetwood Town