in reply to Net::Dns::packet creation.

Something, with the possible exception(s) of shadrack, and cord-bin's examples (see; c4 in their examples), I can't help but notice the omission of IPv6.

This address type has quite a few differences, and as a result, is handled quite differently with regard to both requests, as well as answers. While I do manage quite a few DNS servers, and as a result, quite familiar with the protocol. I have not attempted to manufacture any low-level Perl scripts/Modules myself for this. I have found (so far) that the Modules already available on the CPAN have proved adequate for my needs. But I do appreciate the OP's curiosity, presumably leading them to attempt to "cobble" one up for themselves.

So I guess what I'm trying to say, is; while I don't know what your intent is for creating your own script/routine/procedure(s)/module. If it matters, don't overlook the IPv6 spec. This may also be a good reason to choose an already created Module. :)

Best wishes.

--Chris

¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH