package domain-name

  1. Overview
  2. Docs
RFC 1035 Internet domain names

Install

Dune Dependency

Authors

Maintainers

Sources

domain-name-v0.2.1.tbz
sha256=b86ec83dc94a1257f7a7d151adbd0d49fbeaebedb6f650efda4bb0f72af7a1d6
sha512=f251d04780bf622cf7be305063c55cfa25340938be2080c2989444465ef5c77be9fee9d0db343c17ca970bf90faa2c76b7c400db92ac8c4d2b680da46488c349

doc/CHANGES.html

v0.2.1 (2019-06-30)

  • getter functions for labels: get_label : 'a t -> int -> (string, [> `Msg of string ]) result get_label_exn : 'a t -> int -> string
  • count_labels : 'a t -> int

v0.2.0 (2019-06-25)

  • type t is now a phantom type 'a t, where 'a carries whether it is a hostname, a service name or a raw domain name. this lead to removal of various ?hostname:bool arguments
  • val host : 'a t -> ([host] t, [> Msg of string ]) result
  • analog host_exn, service, service_exn, raw
  • removed is_service, is_hostname
  • new submodules Host_set, Host_map, Service_set, Service_map
  • new function: append : 'a t -> 'b t -> ([raw] t, [> Msg of string ]) result
  • renamed: drop_labels{,_exn} is now drop_label{,_exn}
  • renamed: prepend{,_exn} is now prepend_label{,_exn}

0.1.2 (2019-02-16)

  • is_service accepts numeric service names, used for ports in TLSA records (#1 by @cfcs)
  • port to dune

0.1.1 (2018-07-07)

  • to_string and to_strings now have an optional labeled trailing argument of type bool
  • support for FQDN with trailing dot: of_string "example.com." now returns Ok, and is equal to of_string "example.com"
  • fix and add tests for drop_labels and drop_labels_exn, where the semantics of the labeled back argument was inversed.

0.1.0 (2018-06-26)

  • Initial release
OCaml

Innovation. Community. Security.