Away tie for Gills in FA Cup first round.
Gillingham will play AFC Fylde at Mill Farm in the first round of the FA Cup.
Dion Dublin and Alan Smith made the draw on BBC Two on Monday evening and have given Gills a trip to a non-league side at the first stage. AFC Fylde defeated Kidderminster in their fourth round qualifying replay
Ties will be played across the weekend of November 4-7, with TV picks and ticket information to follow.
The full draw is as follows:
South Shields v Forest Green Rovers
Bolton Wanderers v Barnsley
Boreham Wood v Eastleigh
Curzon Ashton v Cambridge United
Maidenhead United v Dagenham & Redbridge
Crawley Town v Accrington Stanley
Solihull Moors v Hartlepool United
AFC Fylde v Gillingham
Peterborough United v Salford City
Sutton United v Farnborough
Grimsby Town v Plymouth Argyle
MK Dons v Yeovil Town or Taunton
Ebbsfleet United v FC Halifax Town
Carlisle United v Tranmere Rovers
Bracknell Town v Ipswich Town
Hendon or Chippenham Town v Lincoln City
Sheffield Wednesday v Morecambe
Hereford v Portsmouth
Shrewsbury Town v York City
Buxton v Merthyr Town
Charlton Athletic v Coalville Town
Weymouth v AFC Wimbledon
Newport County v Colchester United
Stockport County v Swindon Town
Doncaster Rovers v King's Lynn Town
Altrincham or Gateshead v Stevenage
Fleetwood Town v Oxford City
Burton Albion v Needham Market
Bradford City v Harrogate Town
Port Vale v Exeter City
Torquay United or Hampton & Richmond v Derby County
Bristol Rovers v Rochdale
Wycombe Wanderers v Walsall
Blyth Spartans or Wrexham v Oldham Athletic or Chester
Crewe Alexandra v Leyton Orient
Barnet v Chelmsford City
Woking v Oxford United
Chesterfield v Northampton Town
Cheltenham Town v Alvechurch
Barrow v Mansfield Town