For those interested:
The first bytes of DNSKEY data are the length of the exponent, followed by the exponent (represented as an unsigned integer.) �In the case of .nz, DNSKEYs begin with the following bytes (represented in hex.)
0400 0100 01
Meaning the exponent is the four byte unsigned integer 0x00010001 (65537 in decimal). �This is a pretty common exponent
Interestingly enough, the first bytes of the root DNSKEYs are as follows:
0301 0001
Meaning the exponent is the three byte unsigned integer 0x010001 (65537 in decimal). �Same exponent, but the .nz encoding is significantly more adorable.
Cheers,
James Dempsey