Dananjaya, who is playing despite his bowling action being reported by the International Cricket Council in Galle last week, got the final wicket before lunch, of Rory Burns for 43.
It didn't cost England much as they were able to make the breakthrough when Moeen Ali trapped Dananjaya leg before wicket on 31, but Anderson failed to pick up a wicket in the innings. Stand-in skipper Suranga Lakmal was unbeaten on 15 at the end.
Sam Curran rescued England on the opening day of the second Test against Sri Lanka with a brilliant fifty on a hard pitch in Kandy.More news: Theresa May's Brexit deal gets backing of cabinet
More news: Stormy Daniels' Attorney Michael Avenatti Arrested for Felony Domestic Violence
More news: Pixel Night Sight also works in daylight, reducing noise and boosting resolution
That dismissal brought opener Dimuth Karunaratne and de Silva together, and the duo built a stand of 96 through some smart batting with England's bowlers looking bereft of ideas as the partnership grew. "They tried a lot of things but we managed to counter them", Karunaratne said.
"At one point we felt like we could have a lead, or be level, so we're a little bit disappointed with that". The hosts were handed a five-run penalty in a freakish incident during the final session, after the match officials ruled Sri Lanka's batsmen to have breached the law governing deliberate short runs.
"As we were walking back Burnsy [Rory Burns] said to me 'I've been waiting a long time to open the batting for England and you've done it too quickly".
"Rooty (captain Joe Root) has been massive in the dressing room saying "don't worry about making mistakes" and we're just trying to go out with a positive mindset".
After Buttler swatted a poor reverse sweep off Pushpakumara (3-89) and Moeen Ali (10) and Leach (7) fell, Curran provided plenty of sting in the tail.