Carlisle United have been drawn at home to face League One side Oldham in the first round of the FA Cup.
The Blues were handed a Brunton Park clash against the Latics, who are 17th in the third tier.
The Boundary Park club made a poor start to the season, leading to the dismissal of manager John Sheridan.
But they are currently enjoying a revival under caretaker boss Richie Wellens, with Oldham having won their last four games in all competitions including Saturday's 1-0 victory against Blackburn.
They have won two, drawn one and lost three of their away games in the league this season.
The clubs last met in the Checkatrade Trophy last term, when United won 5-4 at Oldham.
The tie will see United's ex-Oldham midfielder Mike Jones face his former club.
Blues' Oldham-born striker Richie Bennett also started his career on the books of his home-town club before dropping into non-league.
The tie will be played on the weekend of November 3-6.
It will be the second meeting between the clubs in the FA Cup, Oldham beating Carlisle 3-0 in their previous meeting in 2003's first round.
And it is United's first home tie at the first round stage since 2012.
Tonight's live draw programme was hosted by eighth-tier Hyde United, managed by former Carlisle defender Darren Kelly.
His Evo-Stik North side were handed a home tie against League One outfit MK Dons.
Full draw:
Stevenage vs Nantwich or Kettering
Bradford City v Chesterfield
Port Vale v Oxford Utd
Newport County v Walsall
Morecambe v Hartlepool
Yeovil v Southend
Peterborough v Tranmere
Cambridge Utd v Sutton
Forest Green Rovers v Macclesfield
AFC Fylde v Kidderminster
Luton v Portsmouth
Shrewsbury v Aldershot
Hereford v AFC Telford Utd
Guiseley v Accrington Stanley
Blackburn Rovers v Barnet
East Thurrock Utd/Ebbsfleet v Doncaster Rovers
Plymouth v Grimsby
Colchester v Oxford City
Shaw Lane v Mansfield
Boreham Wood v Blackpool
Leatherhead v Brackley/Billericay
AFC Wimbledon v Lincoln City
Rochdale v Dover/Bromley
Coventry v Maidenhead Utd
Chorley/Boston v Fleetwood
Carlisle Utd v Oldham
Notts County v Bristol Rovers
Dartford v Swindon
Cheltenham v Maidstone Utd/Enfield Town
Woking/Concord Rangers v Bury
Crewe Alexandra v Rotherham
Gillingham v Dag & Red/Leyton Orient
Hyde Utd v MK Dons
Gainsborough Trinity v Slough
Solihull/Ossett Town v Wycombe
Northampton v Scunthorpe
Charlton v Truro City
Wigan v Crawley
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here