type net.Resolver
47 uses
net (current package)
conf.go#L187: func (c *conf) mustUseGoResolver(r *Resolver) bool {
conf.go#L194: func (c *conf) addrLookupOrder(r *Resolver, addr string) (ret hostLookupOrder, dnsConf *dnsConfig) {
conf.go#L206: func (c *conf) hostLookupOrder(r *Resolver, hostname string) (ret hostLookupOrder, dnsConf *dnsConfig) {
conf.go#L215: func (c *conf) lookupOrder(r *Resolver, hostname string) (ret hostLookupOrder, dnsConf *dnsConfig) {
dial.go#L126: Resolver *Resolver
dial.go#L189: func (d *Dialer) resolver() *Resolver {
dial.go#L263: func (r *Resolver) resolveAddrList(ctx context.Context, op, network, addr string, hint Addr) (addrList, error) {
dnsclient_unix.go#L161: func (r *Resolver) exchange(ctx context.Context, server string, q dnsmessage.Question, timeout time.Duration, useTCP, ad bool) (dnsmessage.Parser, dnsmessage.Header, error) {
dnsclient_unix.go#L258: func (r *Resolver) tryOneName(ctx context.Context, cfg *dnsConfig, name string, qtype dnsmessage.Type) (dnsmessage.Parser, string, error) {
dnsclient_unix.go#L424: func (r *Resolver) lookup(ctx context.Context, name string, qtype dnsmessage.Type, conf *dnsConfig) (dnsmessage.Parser, string, error) {
dnsclient_unix.go#L550: func (r *Resolver) goLookupHostOrder(ctx context.Context, name string, order hostLookupOrder, conf *dnsConfig) (addrs []string, err error) {
dnsclient_unix.go#L589: func (r *Resolver) goLookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
dnsclient_unix.go#L595: func (r *Resolver) goLookupIPCNAMEOrder(ctx context.Context, network, name string, order hostLookupOrder, conf *dnsConfig) (addrs []IPAddr, cname dnsmessage.Name, err error) {
dnsclient_unix.go#L807: func (r *Resolver) goLookupCNAME(ctx context.Context, host string, order hostLookupOrder, conf *dnsConfig) (string, error) {
dnsclient_unix.go#L813: func (r *Resolver) goLookupPTR(ctx context.Context, addr string, order hostLookupOrder, conf *dnsConfig) ([]string, error) {
ipsock.go#L248: func (r *Resolver) internetAddrList(ctx context.Context, net, addr string) (addrList, error) {
lookup.go#L118: var DefaultResolver = &Resolver{}
lookup.go#L123: type Resolver struct {
lookup.go#L161: func (r *Resolver) preferGo() bool { return r != nil && r.PreferGo }
lookup.go#L162: func (r *Resolver) strictErrors() bool { return r != nil && r.StrictErrors }
lookup.go#L164: func (r *Resolver) getLookupGroup() *singleflight.Group {
lookup.go#L182: func (r *Resolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
lookup.go#L209: func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]IPAddr, error) {
lookup.go#L217: func (r *Resolver) LookupIP(ctx context.Context, network, host string) ([]IP, error) {
lookup.go#L247: func (r *Resolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error) {
lookup.go#L294: func (r *Resolver) lookupIPAddr(ctx context.Context, network, host string) ([]IPAddr, error) {
lookup.go#L417: func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
lookup.go#L471: func (r *Resolver) LookupCNAME(ctx context.Context, host string) (string, error) {
lookup.go#L514: func (r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {
lookup.go#L557: func (r *Resolver) LookupMX(ctx context.Context, name string) ([]*MX, error) {
lookup.go#L597: func (r *Resolver) LookupNS(ctx context.Context, name string) ([]*NS, error) {
lookup.go#L627: func (r *Resolver) LookupTXT(ctx context.Context, name string) ([]string, error) {
lookup.go#L653: func (r *Resolver) LookupAddr(ctx context.Context, addr string) ([]string, error) {
lookup.go#L678: func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
lookup.go#L707: func (r *Resolver) goLookupSRV(ctx context.Context, service, proto, name string) (target string, srvs []*SRV, err error) {
lookup.go#L758: func (r *Resolver) goLookupMX(ctx context.Context, name string) ([]*MX, error) {
lookup.go#L802: func (r *Resolver) goLookupNS(ctx context.Context, name string) ([]*NS, error) {
lookup.go#L844: func (r *Resolver) goLookupTXT(ctx context.Context, name string) ([]string, error) {
lookup_unix.go#L56: func (r *Resolver) lookupHost(ctx context.Context, host string) (addrs []string, err error) {
lookup_unix.go#L64: func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
lookup_unix.go#L76: func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int, error) {
lookup_unix.go#L93: func (r *Resolver) lookupCNAME(ctx context.Context, name string) (string, error) {
lookup_unix.go#L103: func (r *Resolver) lookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {
lookup_unix.go#L107: func (r *Resolver) lookupMX(ctx context.Context, name string) ([]*MX, error) {
lookup_unix.go#L111: func (r *Resolver) lookupNS(ctx context.Context, name string) ([]*NS, error) {
lookup_unix.go#L115: func (r *Resolver) lookupTXT(ctx context.Context, name string) ([]string, error) {
lookup_unix.go#L119: func (r *Resolver) lookupAddr(ctx context.Context, addr string) ([]string, error) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |