Table of Contents

Enum DnsHeaderFlags

Namespace
Iot.Device.MulticastDns.Enum
Assembly
Iot.Device.MulticastDns.dll

The DNS header flags are a 16 bit value according to RFC1035 section 4.1.1.

[Flags]
public enum DnsHeaderFlags : ushort

Fields

Query = 0

Indicates a DNS query

Response = 32768

Indicates a successful response

Remarks

The bits are ordened as following with bith 0 indicating a query or a response:

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |QR| Opcode |AA|TC|RD|RA| Z | RCODE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

See https://www.rfc-editor.org/rfc/rfc1035.html#section-4.1.1 for full explanation.