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.
National League Dagenham and Redbridge or Gillingham will host Leicester City, who won the competition in 2021.
The third round will be played between 6 and 9 January 2023.
Draw in full
Preston v Huddersfield
Middlesbrough v Brighton
Chesterfield v West Brom
Manchester City v Chelsea
Charlton or Stoke 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
More Stories
Kerr’s skill ‘made the boys cry’
Tufnell predicts Australia win on final day of Ashes
No hope of survivors from MRH-90 helicopter crash in Australia