GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  STANFORD::DNS (3)

.ds Aq ’

NAME

Stanford::DNS - DNS Name Functions and Constants

CONTENTS

SYNOPSIS



  use Stanford::DNS;

  $answer = dns_answer(QPTR, T_TXT, C_IN, 60, rr_TXT($text));



DESCRIPTION

<B>Stanford::DNSB> defines DNS name functions and constants. The <B>dns_answerB> function is perhaps the most important function. It is used to create DNS answers returned by <B>Stanford::DNSserverB> dynamic request handlers. The <B>rr_*B> family of functions are used to format the data needed by <B>dns_answerB>.

FUNCTIONS

<B>dns_answerB> $qptr, $type, $class, $ttl, $rdata

Returns a DNS answer of type $type and class $class with TTL $ttl using the input resource record data $rdata.

<B>rr_*B> $data

<B>Stanford::DNSB> defines resource record functions for most DNS record types. The most common types are listed below. Please refer to the source for the rest.
o <B>rr_AB> $ip_address

Format an address record.

o <B>rr_CNAMEB> $name

Format a CNAME (alias) address record.

o <B>rr_NSB> $name

Format a name server record.

o <B>rr_PTRB> $name

Format a pointer (reverse lookup) record.

o <B>rr_MXB> $preference, $name

Format a mail exchanger record.

o <B>rr_SOAB> $mname, $rname, $serial, $refresh, $retry, $expire, $min

Format a start of authority record.

o <B>rr_TXTB> $text

Format a text record.

CONSTANTS

<B>Stanford::DNSB> defines many DNS constants. The most commonly used are listed below. Please refer to the source for the rest.
o <B>QPTRB>

Pointer to the original question in a DNS packet.

o <B>T_AB>

Address record type.

o <B>T_NSB>

Name server record type.

o <B>T_CNAMEB>

Canonical name (alias) record type.

o <B>T_SOAB>

Start of authority record type.

o <B>T_PTRB>

Pointer record type.

o <B>T_MXB>

Mail exchanger record type.

o <B>T_TXTB>

Text record type.

o <B>C_INB>

Internet record class.

o <B>C_ANYB>

Any record class.

o <B>NOERRORB>

Success code.

o <B>FORMERRB>

Unable to interpret the query error code.

o <B>SERVFAILB>

Problem with the name server error code.

o <B>NXDOMAINB>

The domain name does not exist error code.

o <B>NOTIMPB>

Not implemented error code.

o <B>REFUSEDB>

Query disallowed by policy error code.

SEE ALSO

Stanford::DNSserver
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DNS (3) 2003-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.