Wrexham will host National League North side Gainsborough Trinity in the FA Cup fourth qualifying round.
The Dragons last faced Trinity in the semi-finals of the FA Trophy in 2013, a competition the Welsh side went on to win.
The fourth qualifying round will be held on the weekend of 24 October, 2015.
"You always want a home draw and it's a good draw for us," Wrexham boss Gary Mills said.
Wrexham reached the third round in 2014-15, losing 3-1 to Premier League side Stoke City at the Britannia Stadium.
Full draw (ties to be played on 24 October)
Gateshead v Solihull Moors or Worcester City
AFC Fylde v Barrow
Wrexham v Gainsborough Trinity
Marine or Northwich Victoria v Chorley
Harrogate Town v Grimsby Town
Barwell v AFC Rushden & Diamonds
Salford City or Bradford Park Ave v Southport
Sporting Khalsa or Spalding Utd v FC United or Buxton
Chasetown or Stalybridge Celtic v North Ferriby Utd
FC Halifax v Guiseley
Tranmere Rovers v Lincoln City
Stourbridge v Kidderminster Harriers
Macclesfield Town v Alfreton
Brackley or Rugby v Kettering or Bamber Bridge
Altrincham v Chester
Whitehawk or Gosport Borough v Poole Town
Maidenhead United v Woking
Basingstoke Town v Torquay United
Grays Athletic v Welling United
Boreham Wood v AFC Hornchurch
Wealdstone v Bognor Regis Town
Didcot Town v Hoddesdon Town or Brentwood Town
Eastbourne Borough v Dover Athletic
Chesham Utd v Enfield or Hitchin
Staines Town v Gloucester City
Aldershot Town v Hemel Hempstead Town or Sutton United
Bromley v Eastleigh
Margate v Forest Green Rovers
Braintree Town v Harlow Town or Bath City
Havant and Waterlooville v Cheltenham Town
Chippenham Town v Maidstone United
St Albans City v Weston-super-Mare.