Bala Town will travel to San Marino to open their UEFA Europa League campaign against SP Tre Fiori.
The Lakesiders have been handed a trip to the side that finished third in last season's Campionato Sammarinese di Calcio.
Cefn Druids meanwhile have been drawn against Lithuanian side FK Trakai.
Trakai also finished third in their league to qualify, and made it to the Third Qualifying Round last season, knocking out SPFL side St Johnstone on the way.
Europa (GIB) v Prishtina (KOS)
Sant Julià (AND) v Gira (MLT)
Engordany (AND) v Folgore (SMR)
B36 Tórshavn (FRO) v St Joseph's (GIB)
Birkirkara (MLT) v KÍ Klaksvík (FRO)
Tre Fiori (SMR) v Bala Town (WAL)
Cefn Druids (WAL) v Trakai (LTU)
First legs on 28 June; second legs on 5 July