Skip to content

Commit

Permalink
Merge pull request #350 from RyanGibb/expose-handle-update
Browse files Browse the repository at this point in the history
expose Dns_server.update_data
  • Loading branch information
hannesm committed May 17, 2024
2 parents 4c32e12 + 6c3fdee commit 9f395ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/dns_server.mli
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ val handle_question : t -> Packet.Question.t ->
(** [handle_question t question] handles the DNS query [question] by looking
it up in the trie of [t]. *)

val update_data : Dns_trie.t -> 'a Domain_name.t ->
Dns.Packet.Update.prereq list Domain_name.Map.t
* Dns.Packet.Update.update list Domain_name.Map.t ->
( Dns_trie.t * (Domain_name.Set.elt * Dns.Soa.t) list,
Dns.Rcode.t )
result

val handle_update : t -> proto -> [ `raw ] Domain_name.t option ->
Packet.Question.t -> Packet.Update.t ->
(Dns_trie.t * ([`raw] Domain_name.t * Soa.t) list, Rcode.t) result
Expand Down

0 comments on commit 9f395ef

Please sign in to comment.