An opinionated Domain Name System (DNS) library
Library dns
Module Dns . Mx
type t = {
preference : int;
mail_exchange : [ `host ] Domain_name.t;

The type of a mail exchange.

val pp : t Fmt.t

pp ppf t pretty-prints the mail exchange.

val compare : t -> t -> int

compare a b compares the name and preference of a with b.