LookupNetIP looks up the IP addresses for the given host. network should be one of [NetworkIP], [NetworkIP4] or [NetworkIP6]. The response may be empty even if err is nil. All the addrs must be valid.
(ctx context.Context, network Network, host string)
| 18 | // be one of [NetworkIP], [NetworkIP4] or [NetworkIP6]. The response may be |
| 19 | // empty even if err is nil. All the addrs must be valid. |
| 20 | LookupNetIP(ctx context.Context, network Network, host string) (addrs []netip.Addr, err error) |
| 21 | } |
| 22 | |
| 23 | // type check |
no outgoing calls