type net.Resolver
42 uses
net (current package)
conf.go#L124: func (c *conf) hostLookupOrder(r *Resolver, hostname string) (ret hostLookupOrder) {
dial.go#L83: Resolver *Resolver
dial.go#L128: func (d *Dialer) resolver() *Resolver {
dial.go#L202: func (r *Resolver) resolveAddrList(ctx context.Context, op, network, addr string, hint Addr) (addrList, error) {
dnsclient_unix.go#L144: func (r *Resolver) exchange(ctx context.Context, server string, q dnsmessage.Question, timeout time.Duration, useTCP bool) (dnsmessage.Parser, dnsmessage.Header, error) {
dnsclient_unix.go#L241: func (r *Resolver) tryOneName(ctx context.Context, cfg *dnsConfig, name string, qtype dnsmessage.Type) (dnsmessage.Parser, string, error) {
dnsclient_unix.go#L395: func (r *Resolver) lookup(ctx context.Context, name string, qtype dnsmessage.Type) (dnsmessage.Parser, string, error) {
dnsclient_unix.go#L526: func (r *Resolver) goLookupHost(ctx context.Context, name string) (addrs []string, err error) {
dnsclient_unix.go#L530: func (r *Resolver) goLookupHostOrder(ctx context.Context, name string, order hostLookupOrder) (addrs []string, err error) {
dnsclient_unix.go#L564: func (r *Resolver) goLookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
dnsclient_unix.go#L570: func (r *Resolver) goLookupIPCNAMEOrder(ctx context.Context, network, name string, order hostLookupOrder) (addrs []IPAddr, cname dnsmessage.Name, err error) {
dnsclient_unix.go#L740: func (r *Resolver) goLookupCNAME(ctx context.Context, host string) (string, error) {
dnsclient_unix.go#L751: func (r *Resolver) goLookupPTR(ctx context.Context, addr string) ([]string, error) {
ipsock.go#L248: func (r *Resolver) internetAddrList(ctx context.Context, net, addr string) (addrList, error) {
lookup.go#L115: var DefaultResolver = &Resolver{}
lookup.go#L120: type Resolver struct {
lookup.go#L158: func (r *Resolver) preferGo() bool { return r != nil && r.PreferGo }
lookup.go#L159: func (r *Resolver) strictErrors() bool { return r != nil && r.StrictErrors }
lookup.go#L161: func (r *Resolver) getLookupGroup() *singleflight.Group {
lookup.go#L179: func (r *Resolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
lookup.go#L207: func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]IPAddr, error) {
lookup.go#L215: func (r *Resolver) LookupIP(ctx context.Context, network, host string) ([]IP, error) {
lookup.go#L240: func (r *Resolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error) {
lookup.go#L287: func (r *Resolver) lookupIPAddr(ctx context.Context, network, host string) ([]IPAddr, error) {
lookup.go#L411: func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
lookup.go#L465: func (r *Resolver) LookupCNAME(ctx context.Context, host string) (string, error) {
lookup.go#L508: func (r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {
lookup.go#L551: func (r *Resolver) LookupMX(ctx context.Context, name string) ([]*MX, error) {
lookup.go#L591: func (r *Resolver) LookupNS(ctx context.Context, name string) ([]*NS, error) {
lookup.go#L621: func (r *Resolver) LookupTXT(ctx context.Context, name string) ([]string, error) {
lookup.go#L647: func (r *Resolver) LookupAddr(ctx context.Context, addr string) ([]string, error) {
lookup_unix.go#L58: func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
lookup_unix.go#L78: func (r *Resolver) lookupHost(ctx context.Context, host string) (addrs []string, err error) {
lookup_unix.go#L90: func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
lookup_unix.go#L106: func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {
lookup_unix.go#L122: func (r *Resolver) lookupCNAME(ctx context.Context, name string) (string, error) {
lookup_unix.go#L131: func (r *Resolver) lookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {
lookup_unix.go#L183: func (r *Resolver) lookupMX(ctx context.Context, name string) ([]*MX, error) {
lookup_unix.go#L226: func (r *Resolver) lookupNS(ctx context.Context, name string) ([]*NS, error) {
lookup_unix.go#L267: func (r *Resolver) lookupTXT(ctx context.Context, name string) ([]string, error) {
lookup_unix.go#L322: func (r *Resolver) lookupAddr(ctx context.Context, addr string) ([]string, error) {
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L104: return &net.Resolver{