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

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

Documentation

newtype O_nsid Source #

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

Instances details
KnownEdnsOption O_nsid Source # 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID

Associated Types

type OptionExtensionVal O_nsid 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID

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 # 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID

Show O_nsid Source # 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID

Eq O_nsid Source # 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID

Methods

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

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

type OptionExtensionVal O_nsid Source # 
Instance details

Defined in Net.DNSBase.EDNS.Option.NSID