DNS.Message.EDNS0.Option.NSID (DNS v0.4.1)

View Source

EDNS0.Option.NSID RFC5001

The Name Server ID (NSID) option is used to identify a specific name server that responded to a DNS query.

Option Format:

                  1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION-CODE = 3 | OPTION-LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / NSID DATA / / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • NSID DATA: Variable length, up to 65535 octets

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.NSID{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data: binary(),
  length: 0..65535
}

Functions

from_iodata(arg)

new(nsid_data)

@spec new(binary()) :: t()