DNS.ResourceOpt (dns v2.2.0)

Elixir struct for RFC2671/6891's OPT RR records. The corresponding record in inet_dns is :dns_rr_opt

Link to this section Summary

Functions

Converts a :dns_rr_opt record into a DNS.ResourceOpt.

Converts a DNS.ResourceOpt struct to a :dns_rr_opt record.

Link to this section Types

Specs

t() :: %DNS.ResourceOpt{
  data: term(),
  domain: term(),
  ext_rcode: term(),
  type: term(),
  udp_payload_size: term(),
  version: term(),
  z: term()
}

Link to this section Functions

Link to this function

from_record(dns_rr_opt)

Converts a :dns_rr_opt record into a DNS.ResourceOpt.

Link to this function

to_record(resource_opt)

Converts a DNS.ResourceOpt struct to a :dns_rr_opt record.