Dilruwan went on to score 58 off 76 balls, which included seven boundaries, before Sri Lanka began to lose wickets in a hurry.
Pakistan faced a bad and unfortunate defeat at the first Test against Sri Lanka and going to lost the series if cannot manage victory in second which is also last Test.
Pakistan have been dealt a major blow after an injury ruled Mohammad Amir out of the upcoming 5-match ODI series against Sri Lanka in the United Arab Emirates (UAE).More news: Las Vegas massacre probe focuses on gunman's arsenal, history
However, the pink ball will test the visitors to some extent as they have never played an global day/night test before.
Sri Lanka won the first Test 21 runs at Sheikh Zayed Stadium, Abu Dhabi. Leg-spinner Yasir Shah is the pick of the bowlers with 3-120. Australia's Charlie Turner and Englishman Alec Bedser had six consecutive five-fours - but all three were fast bowlers.
Sarfraz Ahmed, the Pakistan skipper, was confident his team staging a comeback. Upon receiving treatment with an ice-pack, he left the field for the second time in the match.
Amir picked up a stress-related injury of his right shin and has been advised rest for the next two to three weeks. Attempting to deliver the fifth ball of his 19th over, Wahab aborted his run up five times, failing, inexplicably, to get into his usual delivery slide.More news: Former Equifax chief apologizes for data breach to House panel
Rangana Herath managed to score an unbeaten 27 as Sri Lanka were bowled out for 482.
The debutant Sadeera Samarawickrama looked an exceptional talent and played a brilliant 38 runs knock off 35 balls before he fell prey to Muhammad Amir.
Where to watch second Test match? At the Dubai International Cricket Stadium on Sunday, Pakistan openers tried to carry forward the work from Day Two's 51 for no loss. Shan Masood had blocked his way to 15 off 53 balls before Dilruwan hit him in front of the stumps with a slider. Six teams have tried previously, and six teams have failed, Sri Lanka included.More news: Apple iPhone X buyers reportedly interested in the most expensive 256GB variant