FR 7156 then FR 2051 at Madrid
Dublin → Madrid → Palma de Mallorca
Timetable, Madrid time
23:45FR 7156 from Dublin at the gate
17:25FR 2051 to Palma de Mallorca leaves the gate
17 h 40 apart on the timetable, overnight
FR 2051 leaves 17 h 40 after FR 7156 arrives on the timetable: more than half a day, so not a connection we count.