Good afternoon, I'm flying to New Zealand next year and have a 17 hour layover in Dubai, do I need a visa to leave the airport?
Except for GCC citizens, everyone needs a visa to enter the UAE.
The difference is if you can get the visa on arrival or do you have to apply for it in advance - and that depends on your nationality.
It depends on your nationality. I flew to NZ with a layover in Dubai, so same as you, and I didn't need any visa, my italian passport was enough. I left the airport with no problem.
(not true that "Except for GCC citizens, everyone needs a visa to enter the UAE.")
You might need visa depending on your nationality. Find out here. If you are travelling with Emirates Airlines, they will provide free transit visa, accommodation and ground transfer for all transits above 8 hours, provided you apply through 'manage booking' at least 24 hours before you fly.