dnsbase
Copyright(c) Viktor Dukhovni 2026
LicenseBSD-3-Clause
Maintainerietf-dane@dukhovni.org
Stabilityunstable
Safe HaskellNone
LanguageGHC2024

Net.DNSBase.Opcode

Description

The 4-bit OPCODE field of a DNS message header — usually QUERY for ordinary lookups, with IQUERY, STATUS, NOTIFY, and UPDATE for less common message kinds. See the IANA DNS Operation Codes registry for the full list.

Synopsis

DNS request and reply OPCODE numbers

data Opcode where Source #

The DNS request Opcode from the basic DNS header. Attempts to construct an Opcode larger than 15 will produce in an error.

Bundled Patterns

pattern DSO :: Opcode

DSO - [RFC8490] DNS Stateful Operations

pattern IQuery :: Opcode

IQuery - [RFC3425]

pattern Notify :: Opcode

Notify - [RFC1996]

pattern Opcode :: Word8 -> Opcode 
pattern Query :: Opcode

Query - [RFC1035]

pattern Status :: Opcode

Status - [RFC1035]

pattern Update :: Opcode

Update - [RFC2136]

Instances

Instances details
Presentable Opcode Source #

The Presentable instance outputs BIND-compatible names.

Instance details

Defined in Net.DNSBase.Internal.Opcode

Bounded Opcode Source # 
Instance details

Defined in Net.DNSBase.Internal.Opcode

Enum Opcode Source # 
Instance details

Defined in Net.DNSBase.Internal.Opcode

Show Opcode Source # 
Instance details

Defined in Net.DNSBase.Internal.Opcode

Eq Opcode Source # 
Instance details

Defined in Net.DNSBase.Internal.Opcode

Methods

(==) :: Opcode -> Opcode -> Bool #

(/=) :: Opcode -> Opcode -> Bool #

Ord Opcode Source # 
Instance details

Defined in Net.DNSBase.Internal.Opcode