opam-version: "2.0"
maintainer:   "dave@recoil.org"
authors:      ["David Scott"]
license:      "ISC"
homepage:     "https://github.com/mirage/ocaml-dns-forward"
bug-reports:  "https://github.com/mirage/ocaml-dns-forward/issues"
dev-repo: "git+https://github.com/mirage/ocaml-dns-forward.git"
doc:          "https://mirage.github.io/ocaml-dns-forward/"

build: [
  ["jbuilder" "subst" "-p" name] {pinned}
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "runtest" "-p" name] {with-test}
]
depends: [
  "ocaml" {>= "4.03.0"}
  "jbuilder" {>= "1.0+beta10"}
  "ppx_sexp_conv" {< "v0.15"}
  "cstruct" {>= "3.0.0"}
  "logs" {>= "0.5.0"}
  "lwt" {>= "2.7.0"}
  "mirage-flow-lwt" {>= "1.2.0"}
  "mirage-clock-lwt"
  "mirage-channel-lwt"
  "mirage-time-lwt"
  "duration"
  "dns" {< "2.0.0"}
  "rresult"
  "astring"
  "fmt"
  "result"
  "mtime"
  "sexplib" {< "v0.15"}
  "ipaddr" {< "3.0.0"}
]
synopsis: "Library and tools for creating forwarding DNS servers"
description: """
Features:

- UDP and TCP DNS forwarding
- support for sending queries to specific servers based on domain
- dynamic configuration updates
- extra records (e.g. from /etc/hosts)"""
url {
  src:
    "https://github.com/mirage/ocaml-dns-forward/releases/download/v0.9.0/dns-forward-0.9.0.tbz"
  checksum: "md5=851d7b0ad1658586ff6554117dedf845"
}
