MCPcopy Index your code
hub / github.com/foxcpp/maddy / Resolver

Interface Resolver

framework/dns/resolver.go:36–42  ·  view source on GitHub ↗

Resolver is an interface that describes DNS-related methods used by maddy. It is implemented by dns.DefaultResolver(). Methods behave the same way.

Source from the content-addressed store, hash-verified

34//
35// It is implemented by dns.DefaultResolver(). Methods behave the same way.
36type Resolver interface {
37 LookupAddr(ctx context.Context, addr string) (names []string, err error)
38 LookupHost(ctx context.Context, host string) (addrs []string, err error)
39 LookupMX(ctx context.Context, name string) ([]*net.MX, error)
40 LookupTXT(ctx context.Context, name string) ([]string, error)
41 LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)
42}
43
44// LookupAddr is a convenience wrapper for Resolver.LookupAddr.
45//

Callers 4

LookupAddrFunction · 0.80
checkDomainFunction · 0.80
requireMXRecordFunction · 0.80
checkIPFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected