sprig
sprig copied to clipboard
New `getHostsByAddr` function for rDNS lookups
A new getHostsByAddr function for doing reverse DNS lookups.
It replicates the existing forward DNS function getHostByName, but instead calls net.LookupAddr.
The intended downstream use case is to allow Grafana Loki to resolve the IPs in log messages.
Included changes:
- Test for new function added.
- Docs for new function added & existing function expanded.
- Some auto-formatting in
functions.govscode did - no-op change.
@mattfarina poke :-)