Ireland captain Andy Balbirnie fell five short of a maiden century as his side racked up an impressive score of 319 for four on the first day of their second Test in Sri Lanka.
Ireland face a battle to avoid defeat in their first-ever Test against Sri Lanka, who tightened their stranglehold on the second day of the series opener in Galle.
Dimuth Karunaratne and Kusal Mendis both scored centuries as Sri Lanka dominated the opening day against Ireland in the first-ever Test between the nations.
New Zealand beat Sri Lanka by six wickets in Friday's third one-day international, ending the visitors' hopes of qualifying directly for the World Cup this year.
Ireland have agreed to play a second Test match against Sri Lanka next month, replacing a pair of scheduled ODIs.
Kane Williamson hit an unbeaten century to guide New Zealand to a last-ball victory over Sri Lanka in the first Test in Christchurch.