(ctx context.Context, addr string)
| 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) |