Resolver is an interface that describes DNS-related methods used by maddy. It is implemented by dns.DefaultResolver(). Methods behave the same way.
| 34 | // |
| 35 | // It is implemented by dns.DefaultResolver(). Methods behave the same way. |
| 36 | type 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 | // |
no outgoing calls
no test coverage detected