| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
Net.DNSBase.RData.A
Description
The two address RR types parallel the variants of IP:
T_a wraps the A RR's IPv4 payload, T_aaaa wraps the
AAAA RR's IPv6 payload. Construct or destructure via the
T_A / T_AAAA pattern constructors. When working with a
polymorphic RData value that may be either, evalIP
dispatches on whichever applies and lifts the address into the
common IP sum.
Documentation
The A resource record
(RFC 1035 section 3.4.1)
— a 32-bit IPv4 address transmitted as four bytes in network
order. The derived Ord is numeric IPv4 order, which agrees
with canonical RR-content ordering
(RFC 4034 section 6.2).
See T_aaaa for the IPv6-family parallel, and evalIP for a
helper that handles either uniformly.
Instances
| Presentable T_a Source # | |||||
Defined in Net.DNSBase.RData.A Methods present :: T_a -> Builder -> Builder Source # presentLazy :: T_a -> ByteString -> ByteString Source # | |||||
| KnownRData T_a Source # | |||||
Defined in Net.DNSBase.RData.A Associated Types
Methods rdataExtensionVal :: forall b -> b ~ T_a => RDataExtensionVal T_a Source # rdType :: forall b -> b ~ T_a => RRTYPE Source # rdTypePres :: forall b -> b ~ T_a => Builder -> Builder Source # rdDecode :: forall b -> b ~ T_a => RDataExtensionVal T_a -> Int -> SGet RData Source # | |||||
| Enum T_a Source # | |||||
| Show T_a Source # | |||||
| Eq T_a Source # | |||||
| Ord T_a Source # | |||||
| type RDataExtensionVal T_a Source # | |||||
Defined in Net.DNSBase.RData.A | |||||
The AAAA resource record
(RFC 3596 section 2.1)
— a 128-bit IPv6 address transmitted as sixteen bytes in network
order. The derived Ord is numeric IPv6 order, which agrees
with canonical RR-content ordering
(RFC 4034 section 6.2).
See T_a for the IPv4-family parallel, and evalIP for a
helper that handles either uniformly.
Instances
| Presentable T_aaaa Source # | |||||
Defined in Net.DNSBase.RData.A Methods present :: T_aaaa -> Builder -> Builder Source # presentLazy :: T_aaaa -> ByteString -> ByteString Source # | |||||
| KnownRData T_aaaa Source # | |||||
Defined in Net.DNSBase.RData.A Associated Types
Methods rdataExtensionVal :: forall b -> b ~ T_aaaa => RDataExtensionVal T_aaaa Source # rdType :: forall b -> b ~ T_aaaa => RRTYPE Source # rdTypePres :: forall b -> b ~ T_aaaa => Builder -> Builder Source # rdDecode :: forall b -> b ~ T_aaaa => RDataExtensionVal T_aaaa -> Int -> SGet RData Source # | |||||
| Show T_aaaa Source # | |||||
| Eq T_aaaa Source # | |||||
| Ord T_aaaa Source # | |||||
| type RDataExtensionVal T_aaaa Source # | |||||
Defined in Net.DNSBase.RData.A | |||||