mirage/ocaml-osx-dnssd

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

OCaml 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:

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>}]

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.