(ctx context.Context, name string)
| 68 | } |
| 69 | |
| 70 | func (r *timeoutResolver) LookupTXT(ctx context.Context, name string) (records []string, err error) { |
| 71 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |
| 72 | defer cancel() |
| 73 | |
| 74 | return r.lookup.LookupTXT(ctx, name) |
| 75 | } |
| 76 | |
| 77 | func (r *timeoutResolver) LookupAddr(ctx context.Context, addr string) (names []string, err error) { |
| 78 | ctx, cancel := context.WithTimeout(ctx, r.timeout) |