.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Zonemaster::Packet 3pm" .TH Zonemaster::Packet 3pm "2022-06-28" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Zonemaster::Packet \- wrapping object for Net::LDNS::Packet objects .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& my $packet = $ns\->query(\*(Aqiis.se\*(Aq, \*(AqNS\*(Aq); \& my @rrs = $packet\->get_records(\*(Aqns\*(Aq); .Ve .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" .IP "packet" 4 .IX Item "packet" Holds the Net::LDNS::Packet the object is wrapping. .SH "METHODS" .IX Header "METHODS" .IP "no_such_record" 4 .IX Item "no_such_record" Returns true if the packet represents an existing \s-1DNS\s0 node lacking any records of the requested type. .IP "no_such_name" 4 .IX Item "no_such_name" Returns true if the packet represents a non-existent \s-1DNS\s0 node. .IP "is_redirect" 4 .IX Item "is_redirect" Returns true if the packet is a redirect to another set of nameservers. .ie n .IP "get_records($type[, $section])" 4 .el .IP "get_records($type[, \f(CW$section\fR])" 4 .IX Item "get_records($type[, $section])" Returns the Net::LDNS::RR objects of the requested type in the packet. If the optional \f(CW$section\fR argument is given, and is one of \f(CW\*(C`answer\*(C'\fR, \&\f(CW\*(C`authority\*(C'\fR and \f(CW\*(C`additional\*(C'\fR, only RRs from that section are returned. .ie n .IP "get_records_for_name($type, $name)" 4 .el .IP "get_records_for_name($type, \f(CW$name\fR)" 4 .IX Item "get_records_for_name($type, $name)" Returns all Net::LDNS::RR objects for the given name in the packet. .ie n .IP "has_rrs_of_type_for_name($type, $name)" 4 .el .IP "has_rrs_of_type_for_name($type, \f(CW$name\fR)" 4 .IX Item "has_rrs_of_type_for_name($type, $name)" Returns true if the packet holds any RRs of the specified type for the given name. .IP "answerfrom" 4 .IX Item "answerfrom" Wrapper for the underlying packet method, that replaces udnefined values with the string \f(CW\*(C`\*(C'\fR. .IP "\s-1TO_JSON\s0" 4 .IX Item "TO_JSON" Support method for \s-1JSON\s0 to be able to serialize these objects. .SH "METHODS PASSED THROUGH" .IX Header "METHODS PASSED THROUGH" These methods are passed through transparently to the underlying Net::LDNS::Packet object. .IP "\(bu" 4 data .IP "\(bu" 4 rcode .IP "\(bu" 4 aa .IP "\(bu" 4 question .IP "\(bu" 4 answer .IP "\(bu" 4 authority .IP "\(bu" 4 additional .IP "\(bu" 4 print .IP "\(bu" 4 string .IP "\(bu" 4 answersize .IP "\(bu" 4 unique_push .IP "\(bu" 4 timestamp .IP "\(bu" 4 type .IP "\(bu" 4 edns_size .IP "\(bu" 4 edns_rcode .IP "\(bu" 4 has_edns .IP "\(bu" 4 id .IP "\(bu" 4 querytime .IP "\(bu" 4 do .IP "\(bu" 4 opcode