Credit has to go to Bangladesh batsmen, says Black Caps pace bowler Tim Southee.

They've dug themselves this cavernous hole, now New Zealand need to bat their way out. And bat. And bat.

Otherwise a major embarrassment looms for these bruised Black Caps whose pre-Christmas Pakistan double became a distant memory on a long, hot day in the Basin Reserve dirt.

One of the proudest days in Bangladesh test cricket doubled as the hosts' Friday horrors, as two seasoned campaigners Shakib Al Hasan and Mushfiqur Rahim took New Zealand's errant bowlers apart and broke multiple records for fun.

HAGEN HOPKINS/GETTY IMAGES Shakib Al Hasan (right) and Bangladesh team-mate Mushfiqur Rahim plundered numerous records on day two at the Basin Reserve.

At stumps on day two of the first test in Wellington, Bangladesh were walking tall at 542-7 after Shakib and his captain Mushfiqur posted the country's highest partnership for any wicket: an epic 359. That joined lofty company as the world's fourth-highest fifth-wicket stand, as Shakib rumbled onwards to 217, his country's highest individual score.

READ MORE:

* Recap: Black Caps v Bangladesh

* Ouch! Southee's wayward throw

* Shoddy bowling, quality batting

* Bracewell out for the season

NZN VIDEO Bangladesh satisfied with first innings total in first test against the Black Caps at Basin Reserve.

Asked if the tourists would bat on in the morning, a cheeky Mushfiqur replied "let's see" with a grin. He had every right to smile.

"It's really satisfying after we lost the ODI and T20 series, we are under tremendous pressure to show our skills, because everyone thought this team can't play a test overseas. The boys really stood up and hopefully this is just the start," Mushfiqur said.

A weary Trent Boult broke the partnership when he enticed a false drive from Mushfiqur on 159 in the lengthening shadows, before Shakib chopped on from Neil Wagner. Still it was job done, as he departed to a rousing ovation from a Basin crowd well used to record-breaking feats in the wake of Brendon McCullum, BJ Watling and Kane Williamson.

JOHN COWPLAND/PHOTOSPORT Another ball races across the Basin Reserve outfield from a Bangladesh bat as New Zealand's captain Kane Williamson contemplates.

It was high quality stuff as the pair sauntered past the previous record of 312 between openers Tamim Iqbal and Imrul Kayes against Pakistan in 2015. Tamim's 206 that day was Bangladesh's previous best.

The pair batted ruthlessly after enduring a short-pitched barrage, dispatched the many wide offerings from the bowlers then put the foot down after tea by scoring a blistering 103 off 17 overs.

By that stage, home captain Williamson looked bereft as the field scattered and even the last resort of Wagner's leg theory couldn't do the trick. Williamson departed twice to ice a bruised finger and Wagner ended with the best figures of 3-124 off 36 as Bangladesh raced along at four an over.

NZN VIDEO Shakib Al Hasan's big day at the Basin Reserve on second day of first test against the Black Caps.

When the ball doesn't swing on a flat pitch New Zealand can quickly look ragged and one-dimensional. They were also sloppy in the field, after they missed the mark in the gale on day one then lacked punch and ran out of ideas on a dream batting surface.

"We bowled some good balls but we didn't apply enough pressure for long enough. That's where credit goes to Bangladesh. They haven't just let us bowl; if we were off by a little bit, a bit of width and Shakib will cut it," said senior bowler Tim Southee.

A significant rescue job looms. Salvaging a draw wasn't yet in their thinking as they go in to bat on a pitch they know well, that won't deteriorate in a hurry. "There's still a lot of cricket to be played. We'll rest up and come back with the plan of knocking these three over and trying to go as big as we can."

JOHN COWPLAND/PHOTOSPORT Neil Wagner mulls his next move after Bangladesh's batsmen ably handled his bouncer barrage.

The second new ball at 285-4 offered a chance for New Zealand but it barely swung for Boult or Southee. Luck also went against them as edges flew wide of catchers and Shakib cut and short-arm jabbed anything short that sat up nicely.

There were fielding blunders, too, when the Black Caps needed to snaffle anything that came their way. Mitchell Santner's drop of a searing pull shot from Shakib, on four in the Thursday gloom, was punished severely.

Wicketkeeper BJ Watling looked like he'd removed Shakib on 137 but the ball brushed the grass after his diving grab of a Wagner bouncer.

HAGEN HOPKINS/GETTY IMAGES Bangladesh captain Mushfiqur Rahim was peppered by short deliveries but survived to build a big partnership with Shakib Al Hasan.

Ross Taylor then put down a diving chance he looked to have snaffled at gully, with Shakib on 189. It was his day, and soon afterwards he rattled up his first double-century off 253 balls with his 30th boundary - a familiar cut off Colin de Grandhomme.

Bangladesh's effort was even more remarkable for being their first away test match since September 2014, with an away record of three wins from 43 tests.

In the past three Basin Reserve tests, New Zealand's 221 against Sri Lanka in 2015 was the highest first innings total. And when the tourists reached 523 they'd beaten their four combined innings totals in Wellington.