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 League Two Gillingham will host 2021 winners Leicester City.
The third round will be played between 6 and 9 January 2023.
In other all-Premier League ties, Brentford are at home to West Ham, while Crystal Palace will host Southampton.
Premier League leaders Arsenal, who have won the FA Cup a record 14 times, will travel to Oxford United, who are 13th in League One.
FA Cup Third Round Draw:
Preston v Huddersfield
Middlesbrough v Brighton
Chesterfield v West Brom
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
Luton v Wigan
Oxford v Arsenal
Fleetwood v QPR
Liverpool v Wolves
Grimsby v Burton
Dagenham & Redbridge or Gillingham v Leicester
Forest Green v Birmingham
Bristol City v Swansea
Hartlepool v Stoke
Hull v Fulham
Sheffield Wednesday v Newcastle
Ipswich v Rotherham