Lanning delivered a stunning 135 not out, as Australia chased down a target of 271 to win by five wickets.