The attacks also struck the websites of New Zealand’s bank and media companies.
The justice minister, Andrew Little, warned of “criminal actors” and tapped the Government Communications Security Bureau, New Zealand’s spy organization, to find the culprit.