-
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
Labels
Sponsor Needed
New component seeking sponsor
Comments
kaisecheng
added
needs triage
New item requiring triage
Sponsor Needed
New component seeking sponsor
labels
Aug 2, 2024
kaisecheng
changed the title
New component: DNS resolve processor
New component: DNS lookup processor
Aug 2, 2024
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? |
6 tasks
Yes, it makes sense to support multiple.
I think it is a nice to have feature and could be in a later version |
This was referenced Aug 27, 2024
This was referenced Sep 10, 2024
This was referenced Sep 24, 2024
This was referenced Oct 15, 2024
This was referenced Oct 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: