package dns

  1. Overview
  2. Docs
type label
type domain_name = string list
val domain_name_to_string : domain_name -> string
val string_to_domain_name : string -> domain_name
val for_reverse : Cstruct.ipv4 -> domain_name
val parse_name : (int, label) Hashtbl.t -> int -> Cstruct.buf -> domain_name * (int * Cstruct.buf)
val marshal_name : ?compress:bool -> (domain_name, int) Hashtbl.t -> int -> Cstruct.buf -> domain_name -> (domain_name, int) Hashtbl.t * int * Cstruct.buf
val hashcons_charstring : string -> string Hashcons.hash_consed
val hashcons_domainname : domain_name -> domain_name Hashcons.hash_consed
val clear_cons_tables : unit -> unit
exception BadDomainName of string
type key = string
val canon2key : domain_name -> key
OCaml

Innovation. Community. Security.