dns-resolver
DNS resolver business logic
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library dns-resolver
val scrub :
[ `raw ] Domain_name.t ->
signed:bool ->
Dns.Packet.Question.qtype ->
Dns.Packet.t ->
( ([ `raw ] Domain_name.t * e * Dns_cache.rank) list, Dns.Rcode.t ) result
scrub bailiwick packet
returns a list of entries to-be-added to the cache. This respects only in-bailiwick resources records, and qualifies the packet
. The purpose is to avoid cache poisoning by not accepting all resource records.
val invalid_soa : [ `raw ] Domain_name.t -> Dns.Soa.t
invalid_soa name
returns a stub SOA for name
.