DNS.Message.Record.Data.SVCB (DNS v0.4.1)

View Source

DNS SVCB Record (Type 64)

The SVCB (Service Binding) record provides a way to publish information about alternative endpoints and parameters for a service, primarily for HTTPS.

RFC 9460 defines the SVCB record format:

  • SvcPriority: 2 octets
  • TargetName: domain name
  • SvcParams: variable length

Summary

Types

t()

@type t() :: %DNS.Message.Record.Data.SVCB{
  data:
    {svc_priority :: 0..65535, target_name :: DNS.Message.Domain.t(),
     svc_params :: binary()},
  raw: bitstring(),
  rdlength: 0..65535,
  type: DNS.ResourceRecordType.t()
}

Functions

from_iodata(raw, message \\ nil)

@spec from_iodata(bitstring(), bitstring() | nil) :: t()

new(arg)

@spec new({integer(), DNS.Message.Domain.t(), binary()}) :: t()