™.. Net::DNS::Question - Online Linux Manual PageSection : 3
Updated : 2009-01-26
Source : perl v5.10.1
Note : User Contributed Perl Documentation

NAMENet::DNS::Question − DNS question class

SYNOPSIS\*(C`use Net::DNS::Question\*(C'\fR

DESCRIPTIONA \*(C`Net::DNS::Question\*(C'\fR object represents a record in the question section of a DNS packet.

METHODS

new​ $question = Net::DNS::Question−>new("example.com", "MX", "IN"); Creates a question object from the domain, type, and class passed as arguments. RFC4291 and RFC4632 IP address/prefix notation is supported for queries in in−addr.arpa and ip6.arpa subdomains.

parse($question, $offset) = Net::DNS::Question−>parse(\$data, $offset); Parses a question section record at the specified location within a DNS packet. The first argument is a reference to the packet data. The second argument is the offset within the packet where the question record begins. Returns a Net::DNS::Question object and the offset of the next location in the packet. Parsing is aborted if the question object cannot be created (e.g., corrupt or insufficient data).

qname, zname​ print "qname = ", $question−>qname, "\n"; ​ print "zname = ", $question−>zname, "\n"; Returns the domain name. In dynamic update packets, this field is known as \*(C`zname\*(C'\fR and refers to the zone name.

qtype, ztype​ print "qtype = ", $question−>qtype, "\n"; ​ print "ztype = ", $question−>ztype, "\n"; Returns the record type. In dymamic update packets, this field is known as \*(C`ztype\*(C'\fR and refers to the zone type (must be \s-1SOA\s0).

qclass, zclass​ print "qclass = ", $question−>qclass, "\n"; ​ print "zclass = ", $question−>zclass, "\n"; Returns the record class. In dynamic update packets, this field is known as \*(C`zclass\*(C'\fR and refers to the zone's class.

print​ $question−>print; Prints the question record on the standard output.

string​ print $qr−>string, "\n"; Returns a string representation of the question record.

data​ $qdata = $question−>data($packet, $offset); Returns the question record in binary format suitable for inclusion in a DNS packet. Arguments are a \*(C`Net::DNS::Packet\*(C'\fR object and the offset within that packet's data where the \*(C`Net::DNS::Question\*(C'\fR record is to be stored. This information is necessary for using compressed domain names.

COPYRIGHTCopyright (c) 1997−2002 Michael Fuhr. Portions Copyright (c) 2002−2004 Chris Reinhardt. Portions Copyright (c) 2003,2006−2007 Dick Franks. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSOperl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Update, Net::DNS::Header, Net::DNS::RR, ​RFC 1035 Section 4.1.2
0
Johanes Gumabo
Data Size   :   12,584 byte
man-Net::DNS::Question.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 256,188
Visitor ID   :     :  
Visitor IP   :   18.225.92.251   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|Net::DNS::Question.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Net::DNS::Question.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|Net::DNS::Question.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Net::DNS::Question.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Net::DNS::Question.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Net::DNS::Question.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Net::DNS::Question.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Net::DNS::Question.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Net::DNS::Question.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|252|Net::DNS::Question.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Net::DNS::Question.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|Net::DNS::Question.3pm|136|\*(C`use Net::DNS::Question\*(C'\fR |\&\f(CW\*(C`use Net::DNS::Question\*(C'\fR )         (rof_escape_sequence|91|Net::DNS::Question.3pm|139|\*(C`Net::DNS::Question\*(C'\fR object represents a record in the |A \f(CW\*(C`Net::DNS::Question\*(C'\fR object represents a record in the )         (rof_escape_sequence|91|Net::DNS::Question.3pm|175|\*(C`zname\*(C'\fR and refers to the zone name. |known as \f(CW\*(C`zname\*(C'\fR and refers to the zone name. )         (rof_escape_sequence|91|Net::DNS::Question.3pm|184|\*(C`ztype\*(C'\fR and refers to the zone type (must be \s-1SOA\s0). |known as \f(CW\*(C`ztype\*(C'\fR and refers to the zone type (must be \s-1SOA\s0). )         (rof_escape_sequence|91|Net::DNS::Question.3pm|193|\*(C`zclass\*(C'\fR and refers to the zone's class. |known as \f(CW\*(C`zclass\*(C'\fR and refers to the zone's class. )         (rof_escape_sequence|91|Net::DNS::Question.3pm|217|\*(C`Net::DNS::Packet\*(C'\fR object and the offset within |Arguments are a \f(CW\*(C`Net::DNS::Packet\*(C'\fR object and the offset within )         (rof_escape_sequence|91|Net::DNS::Question.3pm|218|\*(C`Net::DNS::Question\*(C'\fR record is to |that packet's data where the \f(CW\*(C`Net::DNS::Question\*(C'\fR record is to )