Internet Direct (Indy) Version 9.0.2 Beta
|
procedure Resolve(ADomain: string);
ADomain is the domain name to be resolved in the DNS query using the values specified in AllowRecursiveQueries and QueryRecords. Update QueryRecords and AllowRecursiveQueries prior to calling the Resolve method.
Resolve creates a DNS query packet, including the DNS header, using the value specified in ADomain. Resolve can raise an EIdDnsResolverError exception if a valid DNS query cannot be created using the values in ADomain, AllowRecursiveQueries, and QueryRecords.
Resolve send the DNS query packet to the server, and reads the DNS response. Resolve handles parsing of values in the DNS response into the DNS header and QueryResult. Resolve can raise an EIdDnsResolverError if a timeout occurs, or an incomplete data packet is received, while waiting for a DNS server response.