package dns

  1. Overview
  2. Docs
type serial = int32
type cstr = string Hashcons.hash_consed
and dnsnode = {
  1. owner : Name.domain_name Hashcons.hash_consed;
  2. mutable rrsets : rrset list;
}
and rrset = {
  1. ttl : int32;
  2. rdata : rdata;
}
and rrsig = {
  1. rrsig_type : Packet.rr_type;
  2. rrsig_alg : Packet.dnssec_alg;
  3. rrsig_labels : char;
  4. rrsig_ttl : int32;
  5. rrsig_expiry : int32;
  6. rrsig_incept : int32;
  7. rrsig_keytag : int;
  8. rrsig_name : Name.domain_name;
  9. rrsig_sig : string;
}
and rdata =
  1. | A of Ipaddr.V4.t list
  2. | AAAA of Ipaddr.V6.t list
  3. | AFSDB of (Cstruct.uint16 * dnsnode) list
  4. | CNAME of dnsnode list
  5. | HINFO of (cstr * cstr) list
  6. | ISDN of (cstr * cstr option) list
  7. | MB of dnsnode list
  8. | MG of dnsnode list
  9. | MINFO of (dnsnode * dnsnode) list
  10. | MR of dnsnode list
  11. | MX of (Cstruct.uint16 * dnsnode) list
  12. | NS of dnsnode list
  13. | PTR of dnsnode list
  14. | RP of (dnsnode * dnsnode) list
  15. | RT of (Cstruct.uint16 * dnsnode) list
  16. | SOA of (dnsnode * dnsnode * serial * int32 * int32 * int32 * int32) list
  17. | SRV of (Cstruct.uint16 * Cstruct.uint16 * Cstruct.uint16 * dnsnode) list
  18. | TXT of cstr list list
  19. | Unknown of int * cstr list
  20. | WKS of (Ipaddr.V4.t * Cstruct.byte * cstr) list
  21. | X25 of cstr list
  22. | DNSKEY of (int * int * cstr) list
  23. | DS of (int * Packet.dnssec_alg * Packet.digest_alg * cstr) list
  24. | RRSIG of rrsig list
val rdata_to_string : rdata -> string
OCaml

Innovation. Community. Security.