dnssd

AuthorsDavid Scott and Thomas Gazagnaire
LicenseISC
Homepagehttps://github.com/mirage/ocaml-osx-dnssd
Issue Trackerhttps://github.com/mirage/ocaml-osx-dnssd/issues
Tagorg:mirage
Maintainerdave@recoil.org
Dependencies
&alcotest
cstruct>= 2.3.0
dns
fmt
jbuilder>= 1.0+beta10
logs
lwt
Availableocaml-version >= "4.03.0"
PublishedJul 24, 2017
Source [http] https://github.com/mirage/ocaml-osx-dnssd/releases/download/v0.5.0/dnssd-0.5.0.tbz
8208d2ee22d572ea42da2a1e258c5d5a
StatisticsInstalled 6 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/dnssd/dnssd.0.5.0/opam

DNS Service Discovery for macOS

This library contains bindings to the functions in dns_sd.h, which are used to perform generic DNS queries using the macOS resolver. This is the best way to ensure that the query results match the results obtained by other apps on OSX.

Usage example

In a toplevel:

Dnssd.query "dave.recoil.org" Dns.Packet.Q_A;;
- : (Dns.Packet.rr list, Dnssd.error) result =
Ok
  [{Dns.Packet.name = <abstr>; cls = Dns.Packet.RR_IN; flush = false; ttl = 187l; rdata = Dns.Packet.A <abstr>};
   {Dns.Packet.name = <abstr>; cls = Dns.Packet.RR_IN; flush = false; ttl = 187l; rdata = Dns.Packet.CNAME <abstr>};
   {Dns.Packet.name = <abstr>; cls = Dns.Packet.RR_IN; flush = false; ttl = 187l; rdata = Dns.Packet.CNAME <abstr>}]
Necessary for
vpnkit
>= 0.1.1