(ctx context.Context, name string)
| 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) |
| 58 | defer cancel() |
| 59 | |
| 60 | return r.lookup.LookupMX(ctx, name) |
| 61 | } |
| 62 | |
| 63 | func (r *timeoutResolver) LookupNS(ctx context.Context, name string) (records []*net.NS, err error) { |
| 64 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |