package dns

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

Install

Dune Dependency

Authors

Maintainers

Sources

dns-v5.0.1.tbz
sha256=72c0a1a91c8e409bd448c8e0ea28d16d13177c326aea403ee1c30ddcb5969adc
sha512=f5067d4ef6aca863bd06e6721a63a03da80052ab8e361440e72fae07ca45773763e0321236c6810afe80bd679d68763dc63fb57aec2e953173cc9a944785c93c

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.