package dns

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

Install

Dune Dependency

Authors

Maintainers

Sources

dns-v4.6.3.tbz
sha256=be69bc317369409fc4dfbab1120ced7510313888105a4d13071b962a07e1fd3c
sha512=32082237c7ae922edc63822fe0f6447fb83b9fb40546a196cda4904078b4129e601b4413c95b7c51e012f27c654324e18619ab8aed53969ff07fded13378c2c6

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.