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 rdata =
  1. | A of Cstruct.ipv4 list
  2. | AAAA of cstr 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 (int32 * 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 (Packet.rr_type * Packet.dnssec_alg * char * int32 * int32 * int32 * int * Name.domain_name * string) list
val rdata_to_string : rdata -> string
OCaml

Innovation. Community. Security.