package dns

  1. Overview
  2. Docs
An opinionated Domain Name System (DNS) library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dns-10.2.0.tbz
sha256=ad27c09256f9848658ee625d69140c898c24694aca43550bfb6fee5bc83e74e8
sha512=d5d6a0580d55485cbe46841fb8d5acd7de801bf6ce980f31888836425e39f23f3ff2e909c5f195b15a36166ae97ecd68d24429318028ae8d1ea9322df2f5a65d

doc/dns/Dns/Svcb/index.html

Module Dns.SvcbSource

Service binding and parameter specification record

A Service record (SVCB) specifies a target, its priority, weight and port.

Sourcetype svc_param =
  1. | Mandatory of int list
  2. | Alpn of string list
  3. | No_default_alpn
  4. | Port of int
  5. | Ipv4_hint of Ipaddr.V4.t list
  6. | Ipv6_hint of Ipaddr.V6.t list
  7. | Key of int * string
Sourcetype t = {
  1. svc_priority : int;
  2. target_name : [ `host ] Domain_name.t;
  3. svc_params : svc_param list;
}

The type for a service binding and parameter specification record.

Sourceval pp : t Fmt.t

pp ppf t pretty-prints the service binding and parameter specification record.

Sourceval compare : t -> t -> int

compare a b compares the service binding and parameter specificationrecord a with b.