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

Result code returned in a DNS response.

property RCode: Word;

RCode is a Word property that represents the result code returned by a DNS server as part of a response to a DNS query. RCode may contain one of the following values and associated meanings: 


No error condition. 
Query Format error. The name server was unable to interpret the query. 
Server failure. The name server was unable to process this query due to a problem with the name server. 
Name Error. Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist. 
Not Implemented. The name server does not support the requested kind of query. 
Operation Refused. The name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 
Reserved for future use. 


RCode is represented in a DNS header as a 4-bit field. Changing the value of RCode 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.