package dns

  1. Overview
  2. Docs

Domain name pointer

A domain name pointer (PTR) record specifies the name for an IP address. This allows reverse lookups, instead of asking "which address is example.com located at?", you can ask "who is located at 3.4.5.6.in-addr.arpa.?" (ip6.arpa for IPv6 addresses).

type t = [ `host ] Domain_name.t

The type of a PTR record.

val pp : t Fmt.t

pp ppf t pretty-prints the domain name pointer.

val compare : t -> t -> int

compare a b compares the domain pointer pointer a with b.