| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
Net.DNSBase.EDNS.Option.NSID
Description
The NSID EDNS option lets a server identify itself in a reply — useful for distinguishing between members of an anycast set. The client sends an empty NSID option to request identification; the server's reply carries an opaque byte string chosen by the operator (typically a host name or short tag).
Synopsis
- newtype O_nsid = O_NSID ShortByteString
Documentation
The NSID EDNS option (RFC 5001) — opaque server-chosen bytes identifying the responder. The same option code is used in both directions: a client sends an empty value to ask for identification, the server replies with its identifier (which may contain arbitrary bytes, including non-printable ones).
The Presentable instance renders the bytes through DnsText,
producing a quoted character-string when the content is
printable and escapes for any non-printable bytes.
Constructors
| O_NSID ShortByteString |
Instances
| KnownEdnsOption O_nsid Source # | |||||
Defined in Net.DNSBase.EDNS.Option.NSID Associated Types
Methods optionExtensionVal :: forall b -> b ~ O_nsid => OptionExtensionVal O_nsid Source # optNum :: forall b -> b ~ O_nsid => OptNum Source # optPres :: forall b -> b ~ O_nsid => Builder -> Builder Source # optEncode :: forall s r. (Typeable r, Eq r, Show r) => O_nsid -> SPut s r Source # optDecode :: forall b -> b ~ O_nsid => OptionExtensionVal b -> Int -> SGet EdnsOption Source # | |||||
| Presentable O_nsid Source # | |||||
Defined in Net.DNSBase.EDNS.Option.NSID Methods present :: O_nsid -> Builder -> Builder Source # presentLazy :: O_nsid -> ByteString -> ByteString Source # | |||||
| Show O_nsid Source # | |||||
| Eq O_nsid Source # | |||||
| type OptionExtensionVal O_nsid Source # | |||||
Defined in Net.DNSBase.EDNS.Option.NSID | |||||