Swindon's conquerors Macclesfield will play the winners of the Gillingham and Brackley replay, while Conference South side Dover Athletic travel to MK Dons.
Conference Premier Tamworth have been rewarded for beating Cheltenham with a home tie against League One Bristol City in the second round of the FA Cup.
Stourbridge of the Southern League Premier Division go to Stevenage.
Leaders Leyton Orient are at home to Walsall in an all-League One clash, while Tranmere travel to in-form Peterborough.
Following their 2-1 victory over Bishop's Stortford, the Football League's bottom side, Northampton Town, have been drawn away at the winners of the replay between rivals Grimsby and Scunthorpe.
Conference Premier leaders Cambridge face a home tie against Sheffield United if they can overcome League Two strugglers Bury in a first-round replay, while Mansfield will face third-tier opposition in the form of either Oldham or Wolves.
Conference South side Boreham Wood or League One Carlisle will play Brentford, while Wrexham will play the winners of Oxford versus Gateshead.
FA CUP SECOND-ROUND DRAW
Bury or Cambridge v Sheffield Utd
Wycombe Wanderers or Crewe v Preston North End
Shortwood or Port Vale v Salisbury City
Bristol Rovers or York v Crawley
MK Dons v Dover Athletic
Boreham Wood or Carlisle United v Brentford
Macclesfield Town v Gillingham or Brackley
Chesterfield v Southend United
Oldham Athletic or Wolverhampton Wanderers v Mansfield Town
Rotherham United v Rochdale
Peterborough United v Tranmere Rovers
Hartlepool United v Coventry City
Kidderminster Harriers v Braintree Town or Newport
Lincoln City or Plymouth Argyle v Welling United
Wrexham v Oxford United or Gateshead
Fleetwood Town v Burton Albion
Grimsby or Scunthorpe United v Northampton Town
Leyton Orient v Walsall
Tamworth v Bristol City
Stevenage v Stourbridge
Ties to be played on the weekend of 7 and 8 December non-league sides in bold