package dns

  1. Overview
  2. Docs
type db = {
  1. trie : Trie.dnstrie;
  2. mutable names : (Name.key, RR.dnsnode) Hashtbl.t;
}
val new_db : unit -> db
val no_more_updates : db -> unit
val add_generic_rr : int -> string -> int32 -> Name.domain_name -> db -> unit
val add_a_rr : Cstruct.ipv4 -> int32 -> Name.domain_name -> db -> unit
val add_ns_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_cname_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_soa_rr : Name.domain_name -> Name.domain_name -> RR.serial -> int32 -> int32 -> int32 -> int32 -> int32 -> Name.domain_name -> db -> unit
val add_mb_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_mg_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_mr_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_wks_rr : int32 -> Cstruct.byte -> string -> int32 -> Name.domain_name -> db -> unit
val add_ptr_rr : Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_hinfo_rr : string -> string -> int32 -> Name.domain_name -> db -> unit
val add_minfo_rr : Name.domain_name -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_mx_rr : int -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_rp_rr : Name.domain_name -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_afsdb_rr : int -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_x25_rr : string -> int32 -> Name.domain_name -> db -> unit
val add_isdn_rr : string -> string option -> int32 -> Name.domain_name -> db -> unit
val add_rt_rr : int -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_aaaa_rr : string -> int32 -> Name.domain_name -> db -> unit
val add_srv_rr : int -> int -> int -> Name.domain_name -> int32 -> Name.domain_name -> db -> unit
val add_txt_rr : string list -> int32 -> Name.domain_name -> db -> unit
val add_dnskey_rr : int -> int -> string -> int32 -> Name.domain_name -> db -> unit
exception TTLMismatch
type parserstate = {
  1. mutable db : db;
  2. mutable paren : int;
  3. mutable filename : string;
  4. mutable lineno : int;
  5. mutable origin : string list;
  6. mutable ttl : int32;
  7. mutable owner : string list;
}
val state : parserstate
OCaml

Innovation. Community. Security.