Rangers will play Dynamo Kyiv or Partizan Belgrade in their Champions League third round qualifier.
The Glasgow side will travel to Serbia or Poland for the first leg on August 6/7, with the return fixture at Hampden on August 13.
Dynamo won’t be playing their home leg in Ukraine and will instead host it in Lublin in Poland.
Philippe Clement’s men were among the seeded sides for the draw alongside Slavia Prague, Red Bull Salzburg and Lille.
The winners will progress to the play-off stage of the competition, which will debut a brand new 36-team league phase this season, replacing the group stage.
Rangers will be playing their home leg at Hampden due to delays in construction work at Ibrox.
Should Rangers lose at the third qualifying stage or the play-off round, they will enter the Europa League group stage for the second season in a row.
Last season, Rangers negotiated a third-round qualifier against Swiss side Servette before a 7-3 aggregate defeat against PSV Eindhoven parachuted them into the Europa League.
The Champions League and Conference League play-off draws are on August 5.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country