Skip to content

Commit

Permalink
expose update_data for out-of-band updates with the same semantics as…
Browse files Browse the repository at this point in the history
… DNS UPDATE
  • Loading branch information
RyanGibb committed Apr 28, 2024
1 parent 4c32e12 commit 6c3fdee
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 6c3fdee

Please sign in to comment.