(ctx context.Context, name string)
| 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) |
| 65 | defer cancel() |
| 66 | |
| 67 | return r.lookup.LookupNS(ctx, name) |
| 68 | } |
| 69 | |
| 70 | func (r *timeoutResolver) LookupTXT(ctx context.Context, name string) (records []string, err error) { |
| 71 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |