| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
Net.DNSBase.RData.SOA
Description
Two zone-administration RR types: T_soa is the mandatory
zone-apex record describing zone serial, refresh retry
expire / negative-TTL timing, and the responsible operator's
mailbox. T_rp is an optional record pointing at a person
responsible for a name plus a separate TXT record with free-form
contact details.
Documentation
The SOA resource record
(RFC 1035 section 3.3.13)
— the mandatory zone-apex record carrying zone serial, refresh,
retry, expire, and negative-response TTL alongside the master
nameserver and the operator's mailbox. Returned in negative
responses to convey the negative-cache TTL, and in the AXFR
zone-transfer protocol.
The mname and rname fields are subject to wire-form name
compression on encode
(RFC 3597 section 4)
and canonicalise to lower case
(RFC 4034 section 6.2).
The Eq and Ord instances compare the two domain fields in
their canonical wire form (via equalWireHost /
compareWireHost) and the remaining fields in wire-encoding
order, so Ord is canonical: it agrees with lexicographic
ordering of the full canonical wire form.
See T_rp for the responsible-person record.
Constructors
| T_SOA | |
Fields
| |
Instances
| Presentable T_soa Source # | |||||
Defined in Net.DNSBase.RData.SOA Methods present :: T_soa -> Builder -> Builder Source # presentLazy :: T_soa -> ByteString -> ByteString Source # | |||||
| KnownRData T_soa Source # | |||||
Defined in Net.DNSBase.RData.SOA Associated Types
Methods rdataExtensionVal :: forall b -> b ~ T_soa => RDataExtensionVal T_soa Source # rdType :: forall b -> b ~ T_soa => RRTYPE Source # rdTypePres :: forall b -> b ~ T_soa => Builder -> Builder Source # rdDecode :: forall b -> b ~ T_soa => RDataExtensionVal T_soa -> Int -> SGet RData Source # | |||||
| Show T_soa Source # | |||||
| Eq T_soa Source # | Equality compares the mname and rname fields in canonical wire form, the remaining fields pointwise. | ||||
| Ord T_soa Source # | Canonical: compares the mname and rname fields in canonical wire form and the remaining fields in wire-encoding order, so the result matches lexicographic comparison of the canonical wire form. | ||||
| type RDataExtensionVal T_soa Source # | |||||
Defined in Net.DNSBase.RData.SOA | |||||
The RP resource record
(RFC 1183 section 2.2)
— the responsible person for a name: an mbox-dname encoding an
email address (the first label is the local part, per the
usual DNS mailbox-name convention), and a txt-dname pointing
at a T_txt record with free-form contact details.
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / mbox-dname / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / txt-dname / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Neither field is wire-form name-compressed on encode
(RFC 3597 section 4)
but compression is tolerated on decode. Both fields
canonicalise to lower case
(RFC 4034 section 6.2,
RFC 6840 section 5.1).
The Eq and Ord instances compare both fields in canonical
wire form (via equalWireHost / compareWireHost); since the
field order matches the wire encoding, Ord is canonical.
See T_soa for the mandatory zone-apex record.
Instances
| Presentable T_rp Source # | |||||
Defined in Net.DNSBase.RData.SOA Methods present :: T_rp -> Builder -> Builder Source # presentLazy :: T_rp -> ByteString -> ByteString Source # | |||||
| KnownRData T_rp Source # | |||||
Defined in Net.DNSBase.RData.SOA Associated Types
Methods rdataExtensionVal :: forall b -> b ~ T_rp => RDataExtensionVal T_rp Source # rdType :: forall b -> b ~ T_rp => RRTYPE Source # rdTypePres :: forall b -> b ~ T_rp => Builder -> Builder Source # rdDecode :: forall b -> b ~ T_rp => RDataExtensionVal T_rp -> Int -> SGet RData Source # | |||||
| Show T_rp Source # | |||||
| Eq T_rp Source # | |||||
| Ord T_rp Source # | |||||
| type RDataExtensionVal T_rp Source # | |||||
Defined in Net.DNSBase.RData.SOA | |||||