(ctx context.Context, service, proto, name string)
| 47 | } |
| 48 | |
| 49 | func (r *timeoutResolver) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) { |
| 50 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
| 51 | defer cancel() |
| 52 | |
| 53 | return r.lookup.LookupSRV(ctx, service, proto, name) |
| 54 | } |
| 55 | |
| 56 | func (r *timeoutResolver) LookupMX(ctx context.Context, name string) (records []*net.MX, err error) { |
| 57 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |