erldns_handler (erldns v7.0.0-rc11)

View Source

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 and associated versions

Register a record handler with the default version of 1

Register a record handler with version

Start the handler registry process

Types

handler()

-type handler() :: {module(), [dns:type()]}.

state()

-opaque state()

versioned_handler()

-type versioned_handler() :: {module(), [dns:type()], integer()}.

Functions

get_versioned_handlers()

-spec get_versioned_handlers() -> [versioned_handler()].

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

register_handler(RecordTypes, Module)

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

Register a record handler with the default version of 1

register_handler(RecordTypes, Module, Version)

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

Register a record handler with version

start_link()

-spec start_link() -> gen_server:start_ret().

Start the handler registry process