All-Ireland champions Tyrone face a daunting trip to Galway in the third round of the qualifiers. The meeting of the Tribesmen and Mickey Harte's boys is the top game when the draw was made on Sunday night.
Following their extra-time victory over Meath on Saturday, Fermanagh face a difficult trip to face Cork with Dublin taking on Longford.
Derry received a home tie against the winners of the Offaly and Wexford clash which will be played next week.
All-Ireland qualifying, third round draw
Cork v Fermanagh
Dublin v Longford
Derry v Offaly or Wexford
Galway v Tyrone