erldns_udp_server (erldns v6.0.2)

View Source

Handles DNS questions arriving via UDP.

Emits the following telemetry events:

  • [erldns, request, handoff] (span)
  • [erldns, request, packet_dropped_empty_queue]

Summary

Functions

code_change(PreviousVersion, State, Extra)

handle_call(Request, From, State)

handle_cast(Message, State)

handle_info/2

handle_request(Socket, Host, Port, Bin, TS, State)

init/1

is_running()

-spec is_running() -> boolean().

start_link(Name, InetFamily)

-spec start_link(atom(), inet | inet6) -> {ok, pid()} | ignore | {error, term()}.

start_link(Name, InetFamily, Address, Port)

-spec start_link(atom(), inet | inet6, inet:ip_address(), inet:port_number()) ->
                    {ok, pid()} | ignore | {error, term()}.

start_link(Name, InetFamily, Address, Port, SocketOpts)

terminate(Reason, State)