Topic Path: Symbol Reference > Classes > TDNSHeader Class > TDNSHeader Properties > ID Property
ContentsIndexHome
PreviousUpNext
TDNSHeader.ID Property

Identifier assigned to match DNS query and response packets.

property ID: Word;

ID is a Word property that represents the 16-bit identifier assigned by the DNS Resolver to allow matching a response to the DNS query that generates the message packet. ID is copied from the DNS request to the corresponding reply and can be used by the requester to match up replies to outstanding queries. 

The value in ID is assigned in the Create constructor, and contains a random value in the range 0 to 65535. 

ID is read from the DNS Header returned in a DNS response packet, when the results are parsed after a call to TIdDNSResolver.Resolve.

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