- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LookupNetIP (0.29 sec)
-
src/net/lookup.go
for _, addr := range addrs { ips = append(ips, addr.(*IPAddr).IP) } return ips, nil } // LookupNetIP looks up host using the local resolver. // It returns a slice of that host's IP addresses of the type specified by // network. // The network must be one of "ip", "ip4" or "ip6". func (r *Resolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 28.6K bytes - Viewed (0) -
src/net/dnsclient_unix_test.go
case "MX": _, err := r.LookupMX(context.Background(), req) return err case "NS": _, err := r.LookupNS(context.Background(), req) return err case "NetIP": _, err := r.LookupNetIP(context.Background(), "ip", req) return err case "SRV": const service = "service" const proto = "proto" req = req[len(service)+len(proto)+4:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 72.4K bytes - Viewed (0)