Topic Path: Symbol Reference > Classes > TIdDNSResolver Class > TIdDNSResolver Properties > QueryResult Property
TIdDNSResolver.QueryResult Property

Container for values and resource records in a DNS response.

property QueryResult: TQueryResult;

QueryResult is a read-only TQueryResult property that acts as a container for the results from a DNS query. QueryResult will indicate the class, type, and domain name used in the DNS query, as well as any DNS resource records returned in the query response. 

QueryResult is updated when ParseAnswers is called by the Resolve method to parse values found in the Answer portion of the DNS response. 

QueryResult is a generic collection for TResultRecord and descendant resource records. Items in the collection can be accessed using their integer position. 

Items in QueryResult must be cast to a TResultRecord or descendant class instance to allow access to additional properties and methods specific to the resource record type.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.