New Zealand is on the brink in its Davis Cup tie against Japan in Auckland, needing history to repeat for the home side.