Function NameRegistry.answerQuestions

Accepts a DNS message and returns an answer to it.

void answerQuestions (
  in ref const(Message) query,
  string peer,
  scope @safe void delegate(in ref Message) sender,
  bool tcp = false
) @safe;

The input message should contains a serie of questions, which the server will answer. Currently, only one registry can exists (it assumes authority), and recursion is not yet supported.

Parameters

NameDescription
query The query received by the server
sender A delegate that allows to send a Message to the client. A server may send multiple Messages as a response to a single query, e.g. when doing zone transfer.
tcp True if DNS is accessed through TCP