Open kaisecheng opened 2 months ago
Could we have this support multiple nameservers right away, or is the intention to add that in a later revision? Any thoughts on TCP transport?
Could we have this support multiple nameservers
Yes, it makes sense to support multiple.
Any thoughts on TCP transport?
I think it is a nice to have feature and could be in a later version
The purpose and use-cases of the new component
The DNS lookup Processor is for resolving hostnames to IP addresses and vice versa. It is particularly useful when the GeoIP processor receives a hostname and needs to convert it to an IP address in order to resolve the geo location. The processor performs A record/CNAME record lookups to resolve hostnames to IP addresses, and PTR record lookups for reverse DNS resolution (IP to hostname). The resolved value replaces the original value.
The processor utilizes two LRU (Least Recently Used) caches with TTL (Time-to-Live): one for storing successful resolutions (hit cache) and another for storing failed lookups.
The processor can resolve hostnames/IPs using the system's default resolver, a custom hostfile, or a custom DNS server.
Example configuration for the component
Resolution Order
The resolution order depends on the specified configuration and the
enable_system_resolver
setting: Withenable_system_resolver
set totrue
:When both
hostfile
andnameserver
are specified: Custom hostfile -> Custom DNS server -> System's default resolverWhen only
nameserver
is specified: Custom DNS server -> System's default resolverWhen only
hostfile
is specified: Custom hostfile -> System's default resolverWhen neither
hostfile
nornameserver
are specified: System's default resolverWith
enable_system_resolver
set tofalse
, this affects all scenarios above by removing System's default resolver from the resolution order. The processor will fail to start and throw an error If neitherhostfile
nornameserver
are specified andenable_system_resolver
is set tofalse
.Considerations
Telemetry data types supported
Logs, metrics, traces.
Is this a vendor-specific component?
Code Owner(s)
No response
Sponsor (optional)
No response
Additional context
No response