Indy 9
|
THINFORecord = class(TTextRecord)
HINFO resource records are used to acquire general information about a host server. The main use is for protocols such as FTP that can use special procedures when talking between machines or operating systems of the same type.
An HINFO resoure record uses the same DNS packet layout as other TResultRecord-based responses, but extends the use of RData to include the following definition and format:
Standard values for CPU and OS can be found in RFC 1010.
THINFORecord extends TTextRecord to implement the specifics of accessing RData values as properties, including CPU and OS. THINFORecord also overrides the Parse method to read the values in RData into their property counterparts.
property CPU: String;
property OS: String;
procedure Parse(CompleteMessage: String; APos: Integer); override;
CompleteMessage is the contents of the resource record. Since the DNS message can contain compressed data, the whole message is needed for parsing and pointer location.
APos is the position in the resource record where RData values for this record type are located in the DNS Answer.
Parse calls the inherited Parse method, and retrieve the DNS labels and values for the CPU and OS properties.