Name: ocaml-osx-dnssd
Owner: MirageOS
Description: Binding to the macOS DNS-SD interface
Created: 2017-03-13 11:54:11.0
Updated: 2017-07-19 14:42:50.0
Pushed: 2017-07-25 10:01:49.0
Homepage: null
Size: 58
Language: OCaml
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
In a toplevel:
d.query "dave.recoil.org" Dns.Packet.Q_A;;
(Dns.Packet.rr list, Dnssd.error) result =
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>}]