National League side AFC Fylde will host 2013 FA Cup winners Wigan in the second round of the competition.
Fylde, through to this stage of the competition for the first time in their history following a victory over Kidderminster, were paired with League One Latics when the second round draw was made on Monday.
Fylde's fellow non-League side Boreham Wood will also face former winners of the competition in the shape of Coventry, who lifted the cup in 1987. Coventry will be at home for the tie.
There were a total of 12 non-League sides in the draw. National League South Oxford City were drawn away to Notts County.
Seventh-tier Hereford, the lowest-ranked side through to the second round, will face either Chorley or Fleetwood after their tie on Monday night.
Leatherhead, who are ranked lower than Hereford, would go away to Wycombe if they win their replay against Billericay Town.
FA Cup second-round ties in full:
Woking or Bury vs Peterborough or Tranmere
MK Dons vs Maidstone United
Newport County vs Cambridge United
Wycombe Wanderers vs Leatherhead or Billericay Town
Port Vale vs Yeovil Town
Shrewsbury Town vs Morecambe
Doncaster Rovers vs Northampton or Scunthorpe
Slough Town vs Rochdale
Stevenage vs Swindon Town
Mansfield Town vs Accrington Stanley
Gateshead vs Luton Town
Blackburn Rovers vs Crewe Alexandra
AFC Fylde vs Wigan Athletic
Gillingham vs Carlisle United
Notts County vs Oxford City
Forest Green Rovers vs Exeter City
Chorley or Fleetwood vs Hereford
Coventry City vs Boreham Wood