package dns

  1. Overview
  2. Docs

Service record

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

type t = {
  1. priority : int;
  2. weight : int;
  3. port : int;
  4. target : [ `host ] Domain_name.t;
}

The type for a service record.

val pp : t Fmt.t

pp ppf t pretty-prints the service record.

val compare : t -> t -> int

compare a b compares the service record a with b.

OCaml

Innovation. Community. Security.