Topic Path: Symbol Reference > Classes > TDNSHeader Class > TDNSHeader Properties > Qr Property
TDNSHeader.Qr Property

Indicates if the DNS message packet contains a query or a response.

property Qr: Word;

Qr is a Word property that specifies if the contents of the DNS message packet contains a DNS query or DNS a response. Qr will contain the value 0 when the message is a query, and the value 1 when the message is a response. 

Qr is represented in a DNS header as a bit field. Changing the value of Qr ensures that the appropriate bit field is updated in the DNS header for the message packet.

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