.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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::Engine::Packet 3pm" .TH Zonemaster::Engine::Packet 3pm 2024-04-22 "perl v5.38.2" "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::Engine::Packet \- wrapping object for Zonemaster::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 Zonemaster::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 DNS 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 DNS 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 Zonemaster::LDNS::RR objects of the requested type in the packet. If the optional \f(CW@section\fR argument is given, and is a list of \f(CW\*(C`answer\*(C'\fR, \&\f(CW\*(C`authority\*(C'\fR and \f(CW\*(C`additional\*(C'\fR, only RRs from those sections are returned. .ie n .IP "get_records_for_name($type, $name[, @section])" 4 .el .IP "get_records_for_name($type, \f(CW$name\fR[, \f(CW@section\fR])" 4 .IX Item "get_records_for_name($type, $name[, @section])" Returns all Zonemaster::LDNS::RR objects for the given name in the packet. If the optional \f(CW@section\fR argument is given, and is a list of \f(CW\*(C`answer\*(C'\fR, \&\f(CW\*(C`authority\*(C'\fR and \f(CW\*(C`additional\*(C'\fR, only RRs from those sections are returned. .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 TO_JSON 4 .IX Item "TO_JSON" Support method for JSON 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 Zonemaster::LDNS::Packet object. .IP \(bu 4 data .IP \(bu 4 rcode .IP \(bu 4 aa .IP \(bu 4 ra .IP \(bu 4 tc .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 edns_version .IP \(bu 4 edns_z .IP \(bu 4 edns_data .IP \(bu 4 has_edns .IP \(bu 4 id .IP \(bu 4 querytime .IP \(bu 4 do .IP \(bu 4 opcode