-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New component: DNS lookup processor #34398
Comments
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? |
Yes, it makes sense to support multiple.
I think it is a nice to have feature and could be in a later version |
I can sponsor this component, as long as you propose two code owners, so that one code owner's pull requests can be reviewed by the other code owner and vice versa. This will make it easier for me to review the PRs as the sponsor and third code owner. |
Thank you @andrzej-stencel, I'd be glad to be the second code owner for this component. If @kaisecheng has the availability and agrees, she could be first one. |
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:With
enable_system_resolver
set totrue
:When both
hostfile
andnameserver
are specified:Custom hostfile -> Custom DNS server -> System's default resolver
When only
nameserver
is specified:Custom DNS server -> System's default resolver
When only
hostfile
is specified:Custom hostfile -> System's default resolver
When neither
hostfile
nornameserver
are specified:System's default resolver
With
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 neither
hostfile
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
The text was updated successfully, but these errors were encountered: