Indy 9
|
TMINFORecord = class(TResultRecord)
MINFO resource records are an experimental record type used to represent mailbox addresses for both the maintainer and error logging facilities for a mailing list or email address specified in the owner.
An MINFO 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:
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | . . . RMAILBX . . . | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | . . . EMAILBX . . . | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Although MINFO resource record can be associated with a simple mailbox, they are usually used with a mailing list address.
TMINFORecord extends TTextRecord to implement the specifics of accessing RData values as properties, including ResponsiblePersoneMailbox and ErrorMailbox. TMINFORecord also overrides the Parse method to read the values in RData into their property counterparts.
property ErrorMailbox: String;
property ResponsiblePersonMailbox: 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 retrieves the DNS labels and values for the ResponsiblePersone and ErrorMailbox properties.