Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
OCaml implementation of the DNS protocol
OCaml Other

This branch is 9 commits ahead of mirage:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
async Split out the experimental Async_resolver into a `Async_kernel` and U…
examples added forwarding example
lib Split out the experimental Async_resolver into a `Async_kernel` and U…
lib_test quick fix, should be domain not hard coded string
lwt explicitly select NoError from Packet to avoid ambiguity
mirage adding dns_server_mirage
.gitignore Clean-up datagram socket fds after use; prevents EMFILE; fixes #15
.merlin Add some simple OUnit tests for Dns.Packet.parse using pcap files
.travis-ci-post.sh modernise travis scripts
.travis.yml travis: do not attempt to build async/dns on 4.01.0
CHANGES Split out the experimental Async_resolver into a `Async_kernel` and U…
Makefile remove depopts disjunction by depending purely on tcpip instead of mi…
Makefile.config [make] support .config
README.md adding link to travis builds
TODO.md note the TODO for the pattern match inexhaustiveness
_oasis Split out the experimental Async_resolver into a `Async_kernel` and U…
_tags Split out the experimental Async_resolver into a `Async_kernel` and U…
myocamlbuild.ml Split out the experimental Async_resolver into a `Async_kernel` and U…
opam Split out the experimental Async_resolver into a `Async_kernel` and U…
setup.ml Split out the experimental Async_resolver into a `Async_kernel` and U…

README.md

Build Status

This is a pure OCaml implementation of the DNS protocol. It is intended to be a reasonably high-performance implementation, but clarity is preferred rather than low-level performance hacks.

To build it, please use the OPAM package manager (1.2+):

opam pin add dns .

This will install the dependencies needed and give you a working development version of the library.

Packages:

  • lib/ contains the core DNS protocol, which is packed into the Dns module.
  • lib_test/ contains unit tests and sample uses of the library. In particular, time_server is a simple dynamic responder.

Areas that need work:

  • We need a Lwt-based client resolver, preferably both recursive and iterative. Patches for this are highly welcome!
  • EDNS0 extensions.
  • DNSSEC extensions (using Cryptokit).
Something went wrong with that request. Please try again.