Home Units Hierarchy Routines All identifiers

Unit unaSocks_DNS

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

DNS [RFC 1035]

Version 2.5.2011.12 First release

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class unaDNSClient DNS Client
Class unaDNSQuery DNS Query/Response
Class unaDNSRR DNS RR parser
Class unaDNSRR_A A RR
Class unaDNSRR_AAAA AAAA RR
Class unaDNSRR_CNAME CNAME RR
Class unaDNSRR_DNSKEY DNSKEY RR
Class unaDNSRR_MX MX RR
Class unaDNSRR_NAPTR NAPTR RR
Class unaDNSRR_NS NS RR
Class unaDNSRR_NSEC NSEC RR
Class unaDNSRR_NSEC3PARAM NSEC3PARAM RR
Class unaDNSRR_PTR PTR RR
Class unaDNSRR_RP RP RR
Class unaDNSRR_RRSIG RRSIG RR
Class unaDNSRR_SOA SOA RR
Class unaDNSRR_SRV SRV RR
Class unaDNSRR_subType General RR section
Class unaDNSRR_TXT TXT RR
packed record unaDNS_HDR  

Types

punaDNS_HDR = ˆunaDNS_HDR;
unaDNS_transport = (...);

Constants

c_DNS_CLASS_ANY = 255;
c_DNS_CLASS_CH = 3;
c_DNS_CLASS_CS = 2;
c_DNS_CLASS_HS = 4;
c_DNS_CLASS_IN = 1;
c_DNS_HDR_ISRESPONSE_MASK = 1 shl 15;
c_DNS_HDR_MASK_AA = 1 shl 10;
c_DNS_HDR_MASK_RA = 1 shl 7;
c_DNS_HDR_MASK_RD = 1 shl 8;
c_DNS_HDR_MASK_TC = 1 shl 9;
c_DNS_HDR_OPCODE_IQUERY = 1;
c_DNS_HDR_OPCODE_QUERY = 0;
c_DNS_HDR_OPCODE_STATUS = 0;
c_DNS_HDR_RCODE_FORMAT_ERROR = 1;
c_DNS_HDR_RCODE_NAME_ERROR = 3;
c_DNS_HDR_RCODE_NOT_IMPLEMENTED = 4;
c_DNS_HDR_RCODE_NO_ERROR = 0;
c_DNS_HDR_RCODE_REFUSED = 5;
c_DNS_HDR_RCODE_SERVER_FAILURE = 2;
c_DNS_TYPE_A = 1;
c_DNS_TYPE_AAAA = 28;
c_DNS_TYPE_AFSDB = 18;
c_DNS_TYPE_ANY = 255;
c_DNS_TYPE_APL = 42;
c_DNS_TYPE_AXFR = 252;
c_DNS_TYPE_CERT = 37;
c_DNS_TYPE_CNAME = 5;
c_DNS_TYPE_DHCID = 49;
c_DNS_TYPE_DLV = 32769;
c_DNS_TYPE_DNAME = 39;
c_DNS_TYPE_DNSKEY = 48;
c_DNS_TYPE_DS = 43;
c_DNS_TYPE_HINFO = 13;
c_DNS_TYPE_HIP = 55;
c_DNS_TYPE_IPSECKEY = 45;
c_DNS_TYPE_ISDN = 20;
c_DNS_TYPE_KEY = 25;
c_DNS_TYPE_KX = 36;
c_DNS_TYPE_LOC = 29;
c_DNS_TYPE_MAILA = 254;
c_DNS_TYPE_MAILB = 253;
c_DNS_TYPE_MB = 7;
c_DNS_TYPE_MD = 3;
c_DNS_TYPE_MF = 4;
c_DNS_TYPE_MG = 8;
c_DNS_TYPE_MINFO = 14;
c_DNS_TYPE_MR = 9;
c_DNS_TYPE_MX = 15;
c_DNS_TYPE_NAPTR = 35;
c_DNS_TYPE_NS = 2;
c_DNS_TYPE_NSAP = 22;
c_DNS_TYPE_NSEC = 47;
c_DNS_TYPE_NSEC3 = 50;
c_DNS_TYPE_NSEC3PARAM = 51;
c_DNS_TYPE_NULL = 10;
c_DNS_TYPE_NXT = 30;
c_DNS_TYPE_PTR = 12;
c_DNS_TYPE_PX = 26;
c_DNS_TYPE_RP = 17;
c_DNS_TYPE_RRSIG = 46;
c_DNS_TYPE_RT = 21;
c_DNS_TYPE_SIG = 24;
c_DNS_TYPE_SOA = 6;
c_DNS_TYPE_SRV = 33;
c_DNS_TYPE_TA = 32768;
c_DNS_TYPE_TKEY = 249;
c_DNS_TYPE_TSIG = 250;
c_DNS_TYPE_TXT = 16;
c_DNS_TYPE_WKS = 11;
c_DNS_TYPE_X25 = 19;

Variables

v_DNS_port: int = 53;
v_DNS_timeout: int = 12000;

Description

Types

punaDNS_HDR = ˆunaDNS_HDR;

Refused

unaDNS_transport = (...);

RFC 5966 now requires DNS servers to handle requests over TCP

Values
  • unaDnsTR_UDP: UDP only, do not try TCP
  • unaDnsTR_TCP: TCP only, do not try UDP
  • unaDnsTR_UDP_then_TCP: try UDP first, if truncated, empty or unavailable, try TCP (default)
  • unaDnsTR_TCP_then_UDP: try TCP first, if unavailable, try UDP

Constants

c_DNS_CLASS_ANY = 255;

Hesiod [Dyer 87]

c_DNS_CLASS_CH = 3;

CSNET class (Obsolete - used only for examples in some obsolete RFCs)

c_DNS_CLASS_CS = 2;

the Internet

c_DNS_CLASS_HS = 4;

CHAOS class

c_DNS_CLASS_IN = 1;

DNSSEC Lookaside Validation classes

c_DNS_HDR_ISRESPONSE_MASK = 1 shl 15;

any class header bitfields

c_DNS_HDR_MASK_AA = 1 shl 10;

a server status request

c_DNS_HDR_MASK_RA = 1 shl 7;

Recursion Desired

c_DNS_HDR_MASK_RD = 1 shl 8;

TrunCation

c_DNS_HDR_MASK_TC = 1 shl 9;

Authoritative Answer

c_DNS_HDR_OPCODE_IQUERY = 1;

a standard query

c_DNS_HDR_OPCODE_QUERY = 0;

whether this message is a response

c_DNS_HDR_OPCODE_STATUS = 0;

an inverse query

c_DNS_HDR_RCODE_FORMAT_ERROR = 1;

No error condition

c_DNS_HDR_RCODE_NAME_ERROR = 3;

Server failure

c_DNS_HDR_RCODE_NOT_IMPLEMENTED = 4;

Name Error

c_DNS_HDR_RCODE_NO_ERROR = 0;

Recursion Available

c_DNS_HDR_RCODE_REFUSED = 5;

Not Implemented

c_DNS_HDR_RCODE_SERVER_FAILURE = 2;

Format error

c_DNS_TYPE_A = 1;

query/response types

RFC 1035

c_DNS_TYPE_AAAA = 28;

pointer to X.400/RFC822 mapping information

RFC 3596

c_DNS_TYPE_AFSDB = 18;

Responsible Person

c_DNS_TYPE_ANY = 255;

A request for mail agent RRs (Obsolete - see MX)

c_DNS_TYPE_APL = 42;

Non-Terminal DNS Name Redirection

RFC 3123

c_DNS_TYPE_AXFR = 252;

Secret Key Transaction Authentication query only

c_DNS_TYPE_CERT = 37;

Key Exchange Delegation Record

RFC 4398

c_DNS_TYPE_CNAME = 5;

a mail forwarder (Obsolete - use MX)

c_DNS_TYPE_DHCID = 49;

DNSKEY

RFC 4701

c_DNS_TYPE_DLV = 32769;

RFC 4431

c_DNS_TYPE_DNAME = 39;

Certificates

RFC 2672

c_DNS_TYPE_DNSKEY = 48;

NSEC

c_DNS_TYPE_DS = 43;

Address Prefixes

RFC 4034

c_DNS_TYPE_HINFO = 13;

a domain name pointer

c_DNS_TYPE_HIP = 55;

NSEC3 parameters

RFC 5205

c_DNS_TYPE_IPSECKEY = 45;

DS

c_DNS_TYPE_ISDN = 20;

x25

c_DNS_TYPE_KEY = 25;

signature

RFC 2535

c_DNS_TYPE_KX = 36;

Naming Authority Pointer

RFC 2230

c_DNS_TYPE_LOC = 29;

IPv6 address

RFC 1876

c_DNS_TYPE_MAILA = 254;

A request for mailbox-related records (MB, MG or MR)

c_DNS_TYPE_MAILB = 253;

A request for a transfer of an entire zone

c_DNS_TYPE_MB = 7;

marks the start of a zone of authority

c_DNS_TYPE_MD = 3;

an authoritative name server

c_DNS_TYPE_MF = 4;

a mail destination (Obsolete - use MX)

c_DNS_TYPE_MG = 8;

a mailbox domain name (EXPERIMENTAL)

c_DNS_TYPE_MINFO = 14;

host information

c_DNS_TYPE_MR = 9;

a mail group member (EXPERIMENTAL)

c_DNS_TYPE_MX = 15;

mailbox or mail list information

c_DNS_TYPE_NAPTR = 35;

SRV

RFC 3403, 3404

c_DNS_TYPE_NS = 2;

a host address

c_DNS_TYPE_NSAP = 22;

Route Through

RFC 1706

c_DNS_TYPE_NSEC = 47;

RRSIG

c_DNS_TYPE_NSEC3 = 50;

Dynamic Host Configuration Protocol Information

RFC 5155

c_DNS_TYPE_NSEC3PARAM = 51;

NSEC3

c_DNS_TYPE_NULL = 10;

a mail rename domain name (EXPERIMENTAL)

c_DNS_TYPE_NXT = 30;

geo location

RFC 2535

c_DNS_TYPE_PTR = 12;

a well known service description

c_DNS_TYPE_PX = 26;

key

RFC 2163

c_DNS_TYPE_RP = 17;

text strings

RFC 1183

c_DNS_TYPE_RRSIG = 46;

IPsec Keying Material, RFC 4025

c_DNS_TYPE_RT = 21;

ISDN

c_DNS_TYPE_SIG = 24;

Network Service Access Protocol

RFC 2931/2535

c_DNS_TYPE_SOA = 6;

the canonical name for an alias

c_DNS_TYPE_SRV = 33;

next

RFC 2782

c_DNS_TYPE_TA = 32768;

A request for all records

RFC ????

c_DNS_TYPE_TKEY = 249;

Host Identity Protocol

RFC 2930

c_DNS_TYPE_TSIG = 250;

Secret Key Establishment

RFC 2845

c_DNS_TYPE_TXT = 16;

mail exchange

c_DNS_TYPE_WKS = 11;

a null RR (EXPERIMENTAL)

c_DNS_TYPE_X25 = 19;

AFS

Variables

v_DNS_port: int = 53;

wait 15 seconds for response from server

v_DNS_timeout: int = 12000;
 

Author

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09