home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Net::DNS::Question - DNS question class</TITLE>
- <LINK REL="stylesheet" HREF="../../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Net::DNS::Question - DNS question class</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#methods">METHODS</A></LI>
- <UL>
-
- <LI><A HREF="#new">new</A></LI>
- <LI><A HREF="#qname, zname">qname, zname</A></LI>
- <LI><A HREF="#qtype, ztype">qtype, ztype</A></LI>
- <LI><A HREF="#qclass, zclass">qclass, zclass</A></LI>
- <LI><A HREF="#print">print</A></LI>
- <LI><A HREF="#string">string</A></LI>
- <LI><A HREF="#data">data</A></LI>
- </UL>
-
- <LI><A HREF="#copyright">COPYRIGHT</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Net::DNS::Question - DNS question class</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <P><CODE>use Net::DNS::Question</CODE></P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>A <CODE>Net::DNS::Question</CODE> object represents a record in the
- question section of a DNS packet.</P>
- <P>
- <HR>
- <H1><A NAME="methods">METHODS</A></H1>
- <P>
- <H2><A NAME="new">new</A></H2>
- <PRE>
- $question = new Net::DNS::Question("foo.com", "MX", "IN");</PRE>
- <P>Creates a question object from the domain, type, and class passed
- as arguments.</P>
- <P>
- <H2><A NAME="qname, zname">qname, zname</A></H2>
- <PRE>
- print "qname = ", $question->qname, "\n";
- print "zname = ", $question->zname, "\n";</PRE>
- <P>Returns the domain name. In dynamic update packets, this field is
- known as <CODE>zname</CODE> and refers to the zone name.</P>
- <P>
- <H2><A NAME="qtype, ztype">qtype, ztype</A></H2>
- <PRE>
- print "qtype = ", $question->qtype, "\n";
- print "ztype = ", $question->ztype, "\n";</PRE>
- <P>Returns the record type. In dymamic update packets, this field is
- known as <CODE>ztype</CODE> and refers to the zone type (must be SOA).</P>
- <P>
- <H2><A NAME="qclass, zclass">qclass, zclass</A></H2>
- <PRE>
- print "qclass = ", $question->qclass, "\n";
- print "zclass = ", $question->zclass, "\n";</PRE>
- <P>Returns the record class. In dynamic update packets, this field is
- known as <CODE>zclass</CODE> and refers to the zone's class.</P>
- <P>
- <H2><A NAME="print">print</A></H2>
- <PRE>
- $question->print;</PRE>
- <P>Prints the question record on the standard output.</P>
- <P>
- <H2><A NAME="string">string</A></H2>
- <PRE>
- print $qr->string, "\n";</PRE>
- <P>Returns a string representation of the question record.</P>
- <P>
- <H2><A NAME="data">data</A></H2>
- <PRE>
- $qdata = $question->data($packet, $offset);</PRE>
- <P>Returns the question record in binary format suitable for inclusion
- in a DNS packet.</P>
- <P>Arguments are a <CODE>Net::DNS::Packet</CODE> object and the offset within
- that packet's data where the <CODE>Net::DNS::Question</CODE> record is to
- be stored. This information is necessary for using compressed
- domain names.</P>
- <P>
- <HR>
- <H1><A NAME="copyright">COPYRIGHT</A></H1>
- <P>Copyright (c) 1997 Michael Fuhr. All rights reserved. This program is free
- software; you can redistribute it and/or modify it under the same terms as
- Perl itself.</P>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><EM>perl(1)</EM>, <A HREF="../../../../site/lib/Net/DNS.html">the Net::DNS manpage</A>, <A HREF="../../../../site/lib/Net/DNS/Resolver.html">the Net::DNS::Resolver manpage</A>, <A HREF="../../../../site/lib/Net/DNS/Packet.html">the Net::DNS::Packet manpage</A>,
- <A HREF="../../../../site/lib/Net/DNS/Update.html">the Net::DNS::Update manpage</A>, <A HREF="../../../../site/lib/Net/DNS/Header.html">the Net::DNS::Header manpage</A>, <A HREF="../../../../site/lib/Net/DNS/RR.html">the Net::DNS::RR manpage</A>,
- RFC 1035 Section 4.1.2</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Net::DNS::Question - DNS question class</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-