He picked up ten wickets in the entire match, apart from scoring 84 and 5 in both the innings.
New Zealand icon Richard Hadlee was the only other player to have achieved this. Ponting's four second-innings centuries is the highest.
This is Bangladesh's first ever Test victory against Australia.
130 - Runs added by Steven Smith and David Warner for the third wicket. But Bangladesh spinners forced Australia backs against the wall with quick strikes that left them reeling at 199 for 7 at the stroke of lunch.
Shakib had ended Australian opener Matthew Renshaw's watchful innings in the over before lunch to give Bangladesh the upper hand.
Tamim Iqbal and Mushfiqur Rahim stabilised the innings with a 68-run partnership, during which Iqbal surpassed his fifty.
As things resumed on Day Four, and Warner continuing his fine form, it seemed he could steer Bangaldesh home from there.
We're guaranteed to see at least one change to the Australian XI, with Josh Hazlewood out for this series and the upcoming tour of India with a side strain.
Pat Cummins tried to revive Australia's chase but kept running out of partners.
The rhetoric used by the Australian camp also suggested the end had come, as they emphasised their belief that O'Keefe's performances fell away in India and that it was time to look to the future with Agar.
David Warner and Steve Smith survived Bangladesh's relentless spin onslaught to keep Australia alive in the opening test against Bangladesh yesterday.
The decision was sent upstairs, but replays showed it had grazed only his pad on the way through to Mushfiqur, and an over later he punched Taijul through cover and high-fived captain Steve Smith as he rounded for his second run.
"It was a great Test match".
"We let ourselves down a bit in the first innings with the bat", Smith said.
"We were right in the game, but another collapse, I think 8-86 or something like that". This is the second consecutive win at home for Bangladesh and the second instance of them winning two home Tests in a row.