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


In reply to Re: Net::Dns::packet creation. by taint
in thread Net::Dns::packet creation. by MonkeyManChfKiller

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.