dns

An opinionated Domain Name System (DNS) library
Library dns
Module Dns . Rcode
type t =
| NoError
| FormErr
| ServFail
| NXDomain
| NotImp
| Refused
| YXDomain
| YXRRSet
| NXRRSet
| NotAuth
| NotZone
| BadVersOrSig
| BadKey
| BadTime
| BadMode
| BadName
| BadAlg
| BadTrunc
| BadCookie(*

The type of response codes.

*)
val pp : t Fmt.t

pp ppf rcode pretty-prints the rcode on ppf.

val compare : t -> t -> int

compare a b compares the response code a with b using the RFC-specified integer representation of response codes.

val to_string : t -> string

to_string t is a string representation of t.