(ctx context.Context, host string)
| 142 | } |
| 143 | |
| 144 | func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) { |
| 145 | return r.lookupIPAddr(ctx, r.getConfig(), host, 1, 8) |
| 146 | } |
| 147 | |
| 148 | func (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. |
nothing calls this directly
no test coverage detected