go/src/net/lookup_unix.go

var onceReadProtocols

// readProtocols loads contents of /etc/protocols into protocols map
// for quick access.
func readProtocols() {}

// lookupProtocol looks up IP protocol name in /etc/protocols and
// returns correspondent protocol number.
func lookupProtocol(_ context.Context, name string) (int, error) {}

func (r *Resolver) lookupHost(ctx context.Context, host string) (addrs []string, err error) {}

func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {}

func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {}

func (r *Resolver) lookupCNAME(ctx context.Context, name string) (string, error) {}

func (r *Resolver) lookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {}

func (r *Resolver) lookupMX(ctx context.Context, name string) ([]*MX, error) {}

func (r *Resolver) lookupNS(ctx context.Context, name string) ([]*NS, error) {}

func (r *Resolver) lookupTXT(ctx context.Context, name string) ([]string, error) {}

func (r *Resolver) lookupAddr(ctx context.Context, addr string) ([]string, error) {}