erldns_resolver (erldns v7.0.0-rc9)

View Source

Resolve a DNS query.

Supports only a single question per request: if a request contains multiple questions, only the first question will be resolved.

Emits the following telemetry events:

  • [erldns, pipeline, resolver, error] with #{rc := dns:rcode/0} metadata.

Summary

Functions

best_match(Qname, Zone)

-spec best_match(dns:dname(), erldns:zone()) -> [dns:rr()].

best_match_at_node(Qname)

-spec best_match_at_node(dns:dname()) -> [dns:rr()].

call/2

erldns_pipeline:call/2 callback.

resolve(Message, AuthorityRecords, Host)

-spec resolve(Message :: dns:message(), AuthorityRecords :: [dns:rr()], Host :: inet:ip_address()) ->
                 dns:message().