home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _a7abe2587a44e4484af47fbd5a9f8cc1 < prev    next >
Encoding:
Text File  |  2000-03-23  |  4.7 KB  |  133 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Net::DNS::Question - DNS question class</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> Net::DNS::Question - DNS question class</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  25.     <LI><A HREF="#methods">METHODS</A></LI>
  26.     <UL>
  27.  
  28.         <LI><A HREF="#new">new</A></LI>
  29.         <LI><A HREF="#qname, zname">qname, zname</A></LI>
  30.         <LI><A HREF="#qtype, ztype">qtype, ztype</A></LI>
  31.         <LI><A HREF="#qclass, zclass">qclass, zclass</A></LI>
  32.         <LI><A HREF="#print">print</A></LI>
  33.         <LI><A HREF="#string">string</A></LI>
  34.         <LI><A HREF="#data">data</A></LI>
  35.     </UL>
  36.  
  37.     <LI><A HREF="#copyright">COPYRIGHT</A></LI>
  38.     <LI><A HREF="#see also">SEE ALSO</A></LI>
  39. </UL>
  40. <!-- INDEX END -->
  41.  
  42. <HR>
  43. <P>
  44. <H1><A NAME="name">NAME</A></H1>
  45. <P>Net::DNS::Question - DNS question class</P>
  46. <P>
  47. <HR>
  48. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  49. <UL>
  50. <LI>Linux</LI>
  51. <LI>Solaris</LI>
  52. <LI>Windows</LI>
  53. </UL>
  54. <HR>
  55. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  56. <P><CODE>use Net::DNS::Question</CODE></P>
  57. <P>
  58. <HR>
  59. <H1><A NAME="description">DESCRIPTION</A></H1>
  60. <P>A <CODE>Net::DNS::Question</CODE> object represents a record in the
  61. question section of a DNS packet.</P>
  62. <P>
  63. <HR>
  64. <H1><A NAME="methods">METHODS</A></H1>
  65. <P>
  66. <H2><A NAME="new">new</A></H2>
  67. <PRE>
  68.     $question = new Net::DNS::Question("foo.com", "MX", "IN");</PRE>
  69. <P>Creates a question object from the domain, type, and class passed
  70. as arguments.</P>
  71. <P>
  72. <H2><A NAME="qname, zname">qname, zname</A></H2>
  73. <PRE>
  74.     print "qname = ", $question->qname, "\n";
  75.     print "zname = ", $question->zname, "\n";</PRE>
  76. <P>Returns the domain name.  In dynamic update packets, this field is
  77. known as <CODE>zname</CODE> and refers to the zone name.</P>
  78. <P>
  79. <H2><A NAME="qtype, ztype">qtype, ztype</A></H2>
  80. <PRE>
  81.     print "qtype = ", $question->qtype, "\n";
  82.     print "ztype = ", $question->ztype, "\n";</PRE>
  83. <P>Returns the record type.  In dymamic update packets, this field is
  84. known as <CODE>ztype</CODE> and refers to the zone type (must be SOA).</P>
  85. <P>
  86. <H2><A NAME="qclass, zclass">qclass, zclass</A></H2>
  87. <PRE>
  88.     print "qclass = ", $question->qclass, "\n";
  89.     print "zclass = ", $question->zclass, "\n";</PRE>
  90. <P>Returns the record class.  In dynamic update packets, this field is
  91. known as <CODE>zclass</CODE> and refers to the zone's class.</P>
  92. <P>
  93. <H2><A NAME="print">print</A></H2>
  94. <PRE>
  95.     $question->print;</PRE>
  96. <P>Prints the question record on the standard output.</P>
  97. <P>
  98. <H2><A NAME="string">string</A></H2>
  99. <PRE>
  100.     print $qr->string, "\n";</PRE>
  101. <P>Returns a string representation of the question record.</P>
  102. <P>
  103. <H2><A NAME="data">data</A></H2>
  104. <PRE>
  105.     $qdata = $question->data($packet, $offset);</PRE>
  106. <P>Returns the question record in binary format suitable for inclusion
  107. in a DNS packet.</P>
  108. <P>Arguments are a <CODE>Net::DNS::Packet</CODE> object and the offset within
  109. that packet's data where the <CODE>Net::DNS::Question</CODE> record is to
  110. be stored.  This information is necessary for using compressed
  111. domain names.</P>
  112. <P>
  113. <HR>
  114. <H1><A NAME="copyright">COPYRIGHT</A></H1>
  115. <P>Copyright (c) 1997 Michael Fuhr.  All rights reserved.  This program is free
  116. software; you can redistribute it and/or modify it under the same terms as
  117. Perl itself.</P>
  118. <P>
  119. <HR>
  120. <H1><A NAME="see also">SEE ALSO</A></H1>
  121. <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>,
  122. <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>,
  123. RFC 1035 Section 4.1.2</P>
  124. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  125. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  126. <STRONG><P CLASS=block> Net::DNS::Question - DNS question class</P></STRONG>
  127. </TD></TR>
  128. </TABLE>
  129.  
  130. </BODY>
  131.  
  132. </HTML>
  133.