package mirage-dns

  1. Overview
  2. Docs
type t
type stack = Local.stack
val create : stack -> t
val resolve : (module Dns.Protocol.CLIENT) -> t -> Ipaddr.V4.t -> int -> Dns.Packet.q_class -> Dns.Packet.q_type -> Dns.Name.t -> Dns.Packet.t Lwt.t
val gethostbyname : t -> ?server:Ipaddr.V4.t -> ?dns_port:int -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> string -> Ipaddr.t list Lwt.t
val gethostbyaddr : t -> ?server:Ipaddr.V4.t -> ?dns_port:int -> ?q_class:Dns.Packet.q_class -> ?q_type:Dns.Packet.q_type -> Ipaddr.V4.t -> string list Lwt.t
OCaml

Innovation. Community. Security.