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

Improvement: allow to use custom LookupIP function #8

Open
klingac opened this issue Mar 22, 2022 · 0 comments · May be fixed by #9
Open

Improvement: allow to use custom LookupIP function #8

klingac opened this issue Mar 22, 2022 · 0 comments · May be fixed by #9

Comments

@klingac
Copy link

klingac commented Mar 22, 2022

Sometimes we need to use other LookupIP() func then default net.LookupIP() func. This is typical, when we need to use custom DNS resolver - e.g. hashicorps consul, etc.
It should be very helpfull to be able to setup cutom function here

func (r *Resolver) Lookup(address string) ([]net.IP, error) {
  ips, err := net.LookupIP(address)
@klingac klingac linked a pull request Jun 18, 2022 that will close this issue
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 a pull request may close this issue.

1 participant