Away tie for Gills in FA Cup second round, if first round replay is won.
Gillingham or Cheltenham Town will play AFC Wimbledon away in the second round of the Emirates FA Cup.
The draw was made on Monday evening following the conclusion of the Dagenham and Salford game on ITV4, and it will see Steve Evans' side, if victorious in their first round replay, travel to a fellow League 1 outfit for the right to be in the hat for the third round.
The replay against Cheltenham is likely to take place on November 16, but we await official confirmation.
The full second round draw is as follows:
Yeovil Town v MK Dons or Stevenage
Oxford United or Bristol Rovers v Sutton United
Burton Albion v Port Vale
Buxton v Morecambe
Lincoln City v Hartlepool United or Wycombe Wanderers
AFC Wimbledon v Gillingham or Cheltenham Town
Colchester United v Wigan Athletic or Solihull Moors
Leyton Orient v Tranmere Rovers
Northampton Town or Cambridge United v Bradford City or Exeter City
Doncaster Rovers v Mansfield Town
Walsall v Swindon Town
Rotherham United v Bolton Wanderers or Stockport County
Gateshead or Altrincham v Charlton Athletic
Boreham Wood v St Albans City
Kidderminster Harriers v FC Halifax Town
Carlisle United v Shrewsbury Town
Salford City v Chesterfield
Rochdale or Notts County v Sheffield Wednesday or Plymouth Argyle
Ipswich Town or Oldham Athletic v Barrow
Portsmouth v Harrogate Town
Ties to be played the weekend of December 3-6.