Bangladesh removed New Zealand opener Jamie How in the second innings to press for a win in the first Test here on Monday.
New Zealand, set a daunting target of 317 runs to win or bat out the remaining 154 overs, recovered to 84-1 at tea on the fourth day at the Divisional Stadium after Bangladesh made 242 in their second innings.
Opener Aaron Redmond was unbeaten on 27 and Jesse Ryder was batting on 15 at the break, with the tourists still needing another 233 to take lead in the two-Test series.
Redmond and How gave the tourists a solid start on a weary, cracked pitch offering little bounce.
How batted solidly, hitting five boundaries and a hooked six off paceman Mashrafe Mortaza before he was bowled, trying to cut a sharp turner from Razzak.
Bangladesh, seeking their first win against a major country, used as many as seven bowlers but failed to get more than one wicket.
The tourists' best run chase in a Test was 324-5 they made against Pakistan at Christchurch in 1994. However their best run chase away from home is a disappointing 164-4 against Australia at Perth in 1985.
Bangladesh, who resumed at the overnight score of 188-8, added another 54 runs for the last two wickets before they were bowled out half-an-hour before lunch.
Mortaza made 44 and added 40 for the ninth wicket with Razzak (18) and another 22 for the last wicket with Shahadat Hossain (nought) to take Bangladesh's lead beyond 300-run mark.
Mortaza hit seven boundaries during his 87-ball knock before he was finally stumped by Brendon McCullum off part-time bowler Redmond to finish the home team's second innings.
Left arm spinner Daniel Vettori followed his 5-59 in the first innings with 4-74.