Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DNS(3)		      User Contributed Perl Documentation		DNS(3)

NAME
       Stanford::DNS - DNS Name	Functions and Constants

SYNOPSIS
	 use Stanford::DNS;

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

DESCRIPTION
       Stanford::DNS defines DNS name functions	and constants.	The dns_answer
       function	is perhaps the most important function.	 It is used to create
       DNS answers returned by Stanford::DNSserver dynamic request handlers.
       The rr_*	family of functions are	used to	format the data	needed by
       dns_answer.

FUNCTIONS
       dns_answer $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.

       rr_* $data

       Stanford::DNS 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   rr_A	$ip_address

	   Format an address record.

       o   rr_CNAME $name

	   Format a CNAME (alias) address record.

       o   rr_NS $name

	   Format a name server	record.

       o   rr_PTR $name

	   Format a pointer (reverse lookup) record.

       o   rr_MX $preference, $name

	   Format a mail exchanger record.

       o   rr_SOA $mname, $rname, $serial, $refresh, $retry, $expire, $min

	   Format a start of authority record.

       o   rr_TXT $text

	   Format a text record.

CONSTANTS
       Stanford::DNS defines many DNS constants.  The most commonly used are
       listed below.  Please refer to the source for the rest.

       o   QPTR

	   Pointer to the original question in a DNS packet.

       o   T_A

	   Address record type.

       o   T_NS

	   Name	server record type.

       o   T_CNAME

	   Canonical name (alias) record type.

       o   T_SOA

	   Start of authority record type.

       o   T_PTR

	   Pointer record type.

       o   T_MX

	   Mail	exchanger record type.

       o   T_TXT

	   Text	record type.

       o   C_IN

	   Internet record class.

       o   C_ANY

	   Any record class.

       o   NOERROR

	   Success code.

       o   FORMERR

	   Unable to interpret the query error code.

       o   SERVFAIL

	   Problem with	the name server	error code.

       o   NXDOMAIN

	   The domain name does	not exist error	code.

       o   NOTIMP

	   Not implemented error code.

       o   REFUSED

	   Query disallowed by policy error code.

SEE ALSO
       Stanford::DNSserver

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

NAME | SYNOPSIS | DESCRIPTION | FUNCTIONS | CONSTANTS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Stanford::DNS&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help