View Source erldns_handler (erldns v4.2.0)

The module that handles the resolution of a single DNS question.

The meat of the resolution occurs in erldns_resolver:resolve/3

Summary

Functions

Get all registered handlers along with the DNS types they handle

Get all registered handlers along with the DNS types they handle and associated versions

Register a record handler.

Register a record handler with version.

Start the handler registry process.

Functions

code_change(PreviousVersion, State, Extra)

do_handle(Message, Host)

get_handlers()

-spec get_handlers() -> [{module(), [dns:type()]}].

Get all registered handlers along with the DNS types they handle

get_versioned_handlers()

-spec get_versioned_handlers() -> [{module(), [dns:type()], integer()}].

Get all registered handlers along with the DNS types they handle and associated versions

handle(Message, Context)

handle_call(_, _, State)

handle_cast(_, State)

handle_info(_, State)

handle_message(Message, Host)

init(_)

register_handler(RecordTypes, Module)

-spec register_handler([dns:type()], module()) -> ok.

Register a record handler.

register_handler(RecordTypes, Module, Version)

-spec register_handler([dns:type()], module(), integer()) -> ok.

Register a record handler with version.

start_link()

-spec start_link() -> any().

Start the handler registry process.

terminate(_, _)