DNS.Resource (dns v2.4.0) View Source

Struct definition for serializing and parsing DNS resource.

Link to this section Summary

Functions

Converts a :dns_rr or :dns_rr_opt record into a DNS.Resource or DNS.ResourceOpt.

Converts a DNS.Resource or DNS.ResourceOpt struct to a :dns_rr or :dns_rr_opt record.

Link to this section Types

Specs

t() :: %DNS.Resource{
  bm: term(),
  class: term(),
  cnt: term(),
  data: term(),
  domain: term(),
  func: term(),
  tm: term(),
  ttl: term(),
  type: term()
}

Link to this section Functions

Converts a :dns_rr or :dns_rr_opt record into a DNS.Resource or DNS.ResourceOpt.

Converts a DNS.Resource or DNS.ResourceOpt struct to a :dns_rr or :dns_rr_opt record.