| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
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.
DNS request and reply OPCODE numbers
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
| Presentable Opcode Source # | The |
Defined in Net.DNSBase.Internal.Opcode Methods present :: Opcode -> Builder -> Builder Source # presentLazy :: Opcode -> ByteString -> ByteString Source # | |
| Bounded Opcode Source # | |
| Enum Opcode Source # | |
Defined in Net.DNSBase.Internal.Opcode | |
| Show Opcode Source # | |
| Eq Opcode Source # | |
| Ord Opcode Source # | |