MCPcopy
hub / github.com/grafana/dskit / LookupIPAddr

Method LookupIPAddr

dns/miekgdns/resolver.go:144–146  ·  view source on GitHub ↗
(ctx context.Context, host string)

Source from the content-addressed store, hash-verified

142}
143
144func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) {
145 return r.lookupIPAddr(ctx, r.getConfig(), host, 1, 8)
146}
147
148func (r *Resolver) lookupIPAddr(ctx context.Context, conf *dns.ClientConfig, host string, currIteration, maxIterations int) ([]net.IPAddr, error) {
149 // We want to protect from infinite loops when resolving DNS records recursively.

Callers

nothing calls this directly

Calls 2

lookupIPAddrMethod · 0.95
getConfigMethod · 0.95

Tested by

no test coverage detected