Premier League champions Manchester City will host Chelsea in the FA Cup third round.
Elsewhere, holders Liverpool will welcome Wolverhampton Wanderers to Anfield, while Manchester United are at home to Everton in another all-Premier League tie.
Winning clubs in the third round will claim £105,000 from the competition prize fund.
Liverpool are the current holders of the trophy after they beat Chelsea 6-5 on penalties to win their first FA Cup since 2006.
Draw in full
Preston v Huddersfield
Middlesbrough v Brighton
Chesterfield v West Brom
Manchester City v Chelsea
Charlton or Stockport County v Walsall
Boreham Wood v Accrington
Tottenham v Portsmouth
Derby v Barnsley
Cardiff v Leeds
Brentford v West Ham
Bournemouth v Burnley
Coventry v Wrexham
Norwich v Blackburn
Aston Villa v Stevenage
Luton v Wigan
Oxford v Arsenal
Fleetwood v QPR
Liverpool v Wolves
Grimsby v Burton
Blackpool v Nottingham Forest
Dagenham & Redbridge or Gillingham v Leicester
Forest Green v Birmingham
Bristol City v Swansea
Hartlepool v Stoke
Hull v Fulham
Crystal Palace v Southampton
Millwall v Sheffield United
Shrewsbury v Sunderland
Sheffield Wednesday v Newcastle
Manchester United v Everton
Reading v Watford
Ipswich v Rotherham