TDNSSend.DNSQuery
TDNSSend
function DNSQuery(Name: string; QType: Integer; Const Reply: TStrings): Boolean;
Unit
DNSsend
Description
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.
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.
See also:
RCode, IPInterface, TargetHost, TargetPort