Conference South side Salisbury City have been handed a home tie against former European champions Nottingham Forest in the FA Cup second round. The tie will be shown live on BBC TV.
King's Lynn, the lowest-ranked club definitely through to round two, will host League One side Oldham.
First round giant-killers Basingstoke will travel to Aldershot, while an all-Conference tie sees Rushden & Diamonds play Tamworth.
Full second-round draw:
Milton Keynes Dons v Blackpool
Scunthorpe v Wrexham
Brighton v Stafford
Bristol City v Gillingham
Hereford v Port Vale
Macclesfield v Hartlepool
Stockport v Wycombe
Bury v Chester
Barnet v Northampton
Tranmere v Peterborough
King's Lynn v Oldham
Darlington v Swansea
Salisbury City v Nottingham Forest
Torquay v Leyton Orient
Bristol Rovers v Bournemouth
Bradford v Millwall
Swindon v Morecambe
Mansfield v Doncaster
Aldershot v Basingstoke Town
Rushden & Diamonds v Tamworth
Ties to be played on the weekend of 2 December