Class TDNSSend

DescriptionHierarchyFieldsMethodsProperties

Unit

dnssend

Declaration

type TDNSSend = class(TSynaClient)

Description

Implementation of DNS protocol by UDP or TCP protocol.

Note: Are you missing properties for specify server address and port? Look to parent TSynaClient too!

Hierarchy

TDNSSend > TSynaClient > TObject

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public function DNSQuery(Name: AnsiString; QType: Integer; const Reply: TStrings): Boolean;

Description

Public constructor Create;

 

Public destructor Destroy; override;

 

Public function DNSQuery(Name: AnsiString; QType: Integer; const Reply: TStrings): Boolean;

Query a DNSHost for QType resources correspond to a name. Supported QType values are: Qtype_A, Qtype_NS, Qtype_MD, Qtype_MF, Qtype_CNAME, Qtype_SOA, Qtype_MB, Qtype_MG, Qtype_MR, Qtype_NULL, Qtype_PTR, Qtype_HINFO, Qtype_MINFO, Qtype_MX, Qtype_TXT, Qtype_RP, Qtype_AFSDB, Qtype_X25, Qtype_ISDN, Qtype_RT, Qtype_NSAP, Qtype_NSAPPTR, Qtype_PX, Qtype_GPOS, Qtype_KX.

Type for zone transfers QTYPE_AXFR is supported too, but only in TCP mode!

"Name" is domain name or host name for queried resource. If "name" is IP address, automatically convert to reverse domain form (.in-addr.arpa).

If result is True, Reply contains resource records. One record on one line. If Resource record have multiple fields, they are stored on line divided by comma. (example: MX record contains value 'rs.cesnet.cz' with preference number 10, string in Reply is: '10,rs.cesnet.cz'). All numbers or IP address in resource are converted to string form.

Properties

Overview

Published property AdditionalInfo: TStringList;
Published property AnsferInfo: TStringList;
Published property Authoritative: Boolean;
Published property NameserverInfo: TStringList;
Published property RCode: Integer;
Published property Sock: TUDPBlockSocket;
Published property TCPSock: TTCPBlockSocket;
Published property Truncated: Boolean;
Published property UseTCP: Boolean;

Description

Published property AdditionalInfo: TStringList;

Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed additional information.

Published property AnsferInfo: TStringList;

Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed information about query reply.

Published property Authoritative: Boolean;

True, if ansfer is authoritative.

Published property NameserverInfo: TStringList;

Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed information about nameserver.

Published property RCode: Integer;

After DNS operation contains ResultCode of DNS operation. Values are: 0-no error, 1-format error, 2-server failure, 3-name error, 4-not implemented, 5-refused.

Published property Sock: TUDPBlockSocket;

Socket object used for UDP operation. Good for seting OnStatus hook, etc.

Published property TCPSock: TTCPBlockSocket;

Socket object used for TCP operation. Good for seting OnStatus hook, etc.

Published property Truncated: Boolean;

True, if ansfer is truncated to 512 bytes.

Published property UseTCP: Boolean;

if True, then is used TCP protocol instead UDP. It is needed for zone transfers, etc.


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:17