DNS.Resource (dns v2.2.0)

TODO: docs

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

Link to this function

from_record(record)

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

Link to this function

to_record(resource)

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