Unix and Linux Discussions Tagged with question |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
49,692 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
38,982 |
SCO |
|
|
|
7 |
12,850 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,904 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
24,633 |
What is on Your Mind? |
|
|
|
1 |
2,292 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,098 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
18,677 |
Programming |
|
|
|
4 |
1,724 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,779 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
22,570 |
Shell Programming and Scripting |
|
|
|
4 |
11,891 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,358 |
Shell Programming and Scripting |
|
|
|
6 |
2,579 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,123 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,819 |
Shell Programming and Scripting |
|
|
|
6 |
2,219 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,979 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,012 |
UNIX for Beginners Questions & Answers |
|
|
|
33 |
36,648 |
Solaris |
|
|
|
17 |
15,945 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
2,080 |
Shell Programming and Scripting |
|
|
|
1 |
8,248 |
Linux |
|
|
|
4 |
4,463 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
4,101 |
Shell Programming and Scripting |
|
|
|
1 |
1,989 |
Shell Programming and Scripting |
|
|
|
3 |
4,179 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,977 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,178 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,332 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
2,770 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,157 |
SuSE |
|
|
|
5 |
3,893 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,596 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
10,422 |
Programming |
|
|
|
2 |
4,678 |
OS X (Apple) |
|
|
|
7 |
3,722 |
Shell Programming and Scripting |
|
|
|
1 |
3,140 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
5,637 |
Programming |
|
|
|
3 |
4,669 |
Windows & DOS: Issues & Discussions |
Net::DNS::Question(3) User Contributed Perl Documentation Net::DNS::Question(3)
NAME
Net::DNS::Question - DNS question class
SYNOPSIS
"use Net::DNS::Question"
DESCRIPTION
A "Net::DNS::Question" 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.
qname, zname
print "qname = ", $question->qname, "
";
print "zname = ", $question->zname, "
";
Returns the domain name. In dynamic update packets, this field is known as "zname" and refers to the zone name.
qtype, ztype
print "qtype = ", $question->qtype, "
";
print "ztype = ", $question->ztype, "
";
Returns the record type. In dymamic update packets, this field is known as "ztype" and refers to the zone type (must be SOA).
qclass, zclass
print "qclass = ", $question->qclass, "
";
print "zclass = ", $question->zclass, "
";
Returns the record class. In dynamic update packets, this field is known as "zclass" and refers to the zone's class.
print
$question->print;
Prints the question record on the standard output.
string
print $qr->string, "
";
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 "Net::DNS::Packet" object and the offset within that packet's data where the "Net::DNS::Question" record is to be stored.
This information is necessary for using compressed domain names.
COPYRIGHT
Copyright (c) 1997-2002 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.
SEE ALSO
perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet, Net::DNS::Update, Net::DNS::Header, Net::DNS::RR, RFC 1035 Section 4.1.2
perl v5.8.0 2002-10-12 Net::DNS::Question(3)