Skip to content
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 getHostsByAddr function for rDNS lookups #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hcooper
Copy link

@hcooper hcooper commented Jun 5, 2022

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
Copy link
Author

hcooper commented Dec 2, 2022

@mattfarina poke :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant