Greetings. This looks nearly identical to another post, just a few posts down. Yours also?

What "packets" are you looking to send/receive? Given the terse example you provide. It looks like you're only looking for the IN A. The DNS is a protocol, and has rules that must be followed, to properly form correct queries. I strongly recommend learning more about it. As that knowledge will be required to create, and send, as well as knowing what format to expect on return "packets". DNSwatch appears to be a fairly good resource for much of this.

You'll need to setup "queries" in your script/application --
IN (A|AAA|MBOX|NS|SOA|RP|LOC|CNAME|PTR|TXT|SPF|IXFR|AXFR) (to name but a few), if you're looking to make more than one type. If you're on a UNIX-ish system. Try dig, and experiment to learn how to correctly form the queries "packets". While this may seem obvious, I'll ask anyway. Have you looked at the examples provided in Net::DNS? I found the examples were easily used, and modified to suite my own needs.

If you could provide a slightly more specific example of what you wanted, or even a slightly more specific question. It'd be easier to form a specific solution.

Best wishes.

--Chris

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


In reply to Re: Testing Nameserver with domain Net::DNS::Packet by taint
in thread Testing Nameserver with domain Net::DNS::Packet by Anonymous Monk

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.