Paul Cook's side currently sit third in the National League table - having won their last six straight games.
And it will be the first time either side have met up a competitive competition since 1948.
Elsewhere, Wolves will travel to Anfield to take on Liverpool in the third round of the FA Cup.
The draw echoes the clash in 2017 when then Championship side Wolves pulled off a stunning 2-1 victory.
Aston Villa have been handed a rare home FA Cup third round draw as they get set to welcome League Two Stevenage.
And Walsall will travel to Charlton or Stockport County after overcoming Carlisle in injury time last weekend.