The blackhole plugin (also aliased as sinkhole, black_hole, null_dns) returns configured A/AAAA answers for matching queries. It’s a lightweight authoritative-like plugin useful for sinkholing domains, local overrides, or testing.
The plugin accepts an ips argument (sequence of IP strings) or can be created via the exec quick-setup shorthand.
ips: list of IPv4/IPv6 address strings.Example (YAML):
plugins:
- tag: blackhole
type: blackhole
config:
ips:
- 192.0.2.1
- 2001:db8::1
Quick exec-style shorthand (exec plugin):
plugins:
- exec: blackhole:192.0.2.1,2001:db8::1
Accepted prefixes for exec quick-setup: blackhole, black_hole, sinkhole, null_dns.
When matching a query and returning a response, this plugin will trigger a blocked_domain_query security event if the audit feature is enabled.
blackhole, black_hole, sinkhole, null_dns are all recognized aliases; the plugin registers these for convenience.blackhole plugin configured with a controlled IP.:) is one of the supported aliases.