dns

An opinionated Domain Name System (DNS) library
Library dns
Module Dns . Packet . Question
type qtype = [
| `Any
| `K of Rr_map.k
]

The question type, either Any or a concrete RR type.

val pp_qtype : qtype Fmt.t

pp_qtype ppf q pretty-prints the question type q on ppf.

val compare_qtype : qtype -> qtype -> int

compare_qtype a b compares the question type a with b.

type t = [ `raw ] Domain_name.t * [ qtype | `Axfr | `Ixfr ]

The type in a DNS question: its name and question type or a zone full or incremental transfer.

val qtype : t -> qtype option

qtype t is the question type of t, if any, or None.

val create : 'a Domain_name.t -> 'b Rr_map.key -> t

create name key is a DNS question.

val pp : t Fmt.t

pp ppf t pretty-prints the question t on ppf.

val compare : t -> t -> int

compare a b compares the question a with b by first comparing the domain name for equality, and if equal the query type.