Module Dns.Srv

Service record

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

type t = {
priority : int;
weight : int;
port : int;
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.