package dns

  1. Overview
  2. Docs
type answer = {
  1. rcode : Packet.rcode;
  2. aa : bool;
  3. answer : Packet.rr list;
  4. authority : Packet.rr list;
  5. additional : Packet.rr list;
}
val response_of_answer : Packet.t -> answer -> Packet.t
val answer_of_response : ?preserve_aa:bool -> Packet.t -> answer
val answer : ?dnssec:bool -> Name.domain_name -> Packet.q_type -> Trie.dnstrie -> answer
val create : ?dnssec:bool -> id:int -> Packet.q_class -> Packet.q_type -> Name.domain_name -> Packet.t
OCaml

Innovation. Community. Security.