sprig icon indicating copy to clipboard operation
sprig copied to clipboard

New `getHostsByAddr` function for rDNS lookups

Open hcooper opened this issue 3 years ago • 1 comments

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.go vscode did - no-op change.

hcooper avatar Jun 05 '22 23:06 hcooper

@mattfarina poke :-)

hcooper avatar Dec 02 '22 19:12 hcooper