package dns

  1. Overview
  2. Docs
An opinionated Domain Name System (DNS) library

Install

Dune Dependency

Authors

Maintainers

Sources

dns-v4.4.1.tbz
sha256=c8b2a49485c7a1bed06c3be47c80c6e865728e3f6658407e179bc5099c4c80a1
sha512=f9997cf9bbe4705ff9d49b3b69300cf5eec12c79bec68e32e20c0356e10fb9e7a150b08e627e429d2eaaf35befcdbabc738dff8535a763e7c57d825d006e21ea

doc/dns.cache/Dns_cache/index.html

Module Dns_cacheSource

Sourcetype rank =
  1. | ZoneFile
  2. | ZoneTransfer
  3. | AuthoritativeAnswer
  4. | AuthoritativeAuthority
  5. | ZoneGlue
  6. | NonAuthoritativeAnswer
  7. | Additional
Sourceval pp_rank : rank Fmt.t
Sourceval compare_rank : rank -> rank -> int
Sourcetype t
Sourceval empty : int -> t
Sourceval size : t -> int
Sourceval capacity : t -> int
Sourceval pp : t Fmt.t
Sourcetype entry = [
  1. | `Entry of Dns.Rr_map.b
  2. | `No_data of [ `raw ] Domain_name.t * Dns.Soa.t
  3. | `No_domain of [ `raw ] Domain_name.t * Dns.Soa.t
  4. | `Serv_fail of [ `raw ] Domain_name.t * Dns.Soa.t
]
Sourceval pp_entry : entry Fmt.t
Sourceval get : t -> int64 -> [ `raw ] Domain_name.t -> 'a Dns.Rr_map.key -> (entry, [ `Cache_miss | `Cache_drop ]) result

get lru_cache timestamp request_type name

Sourceval set : t -> int64 -> [ `raw ] Domain_name.t -> 'a Dns.Rr_map.key -> rank -> entry -> unit

set lru_cache timestamp request_type name rank value

OCaml

Innovation. Community. Security.