erldns_query_throttle (erldns v7.0.0-rc9)
View SourceStateful query throttling. Currently only throttles ANY
queries.
We should throttle ANY
queries to discourage use of our authoritative name servers
for reflection/amplification attacks.
Configuration
{erldns, [
{query_throttle, #{
enabled := boolean(), %% defaults to true
limit := non_neg_integer(), %% Number of queries to allow, defaults to 1
ttl := non_neg_integer(), %% Seconds, defaults to 30
}}
]}
Telemetry events
[erldns, pipeline, throttle]
spans withhost
in the metadata as triggered bysegmented_cache
.[erldns, pipeline, throttle]
withhost
in the metadata.
Summary
Functions
-spec call(dns:message(), erldns_pipeline:opts()) -> erldns_pipeline:return().
erldns_pipeline:call/2
callback.
-spec clear() -> any().
Clear the cache
-spec prepare(erldns_pipeline:opts()) -> disabled | erldns_pipeline:opts().
erldns_pipeline:prepare/1
callback.