| skipped 22 lines |
23 | 23 | | // queries. |
24 | 24 | | // |
25 | 25 | | // The -mtu option controls the maximum size of response UDP payloads. |
26 | | - | // Queries that do not advertise requestor support for responses of at least |
| 26 | + | // Queries that do not advertise requester support for responses of at least |
27 | 27 | | // this size at least this size will be responded to with a FORMERR. The default |
28 | 28 | | // value is maxUDPPayload. |
29 | 29 | | // |
| skipped 323 lines |
353 | 353 | | } |
354 | 354 | | |
355 | 355 | | // Check for EDNS(0) support. Include our own OPT RR only if we receive |
356 | | - | // one from the requestor. |
| 356 | + | // one from the requester. |
357 | 357 | | // https://tools.ietf.org/html/rfc6891#section-6.1.1 |
358 | 358 | | // "Lack of presence of an OPT record in a request MUST be taken as an |
359 | | - | // indication that the requestor does not implement any part of this |
| 359 | + | // indication that the requester does not implement any part of this |
360 | 360 | | // specification and that the responder MUST NOT include an OPT record |
361 | 361 | | // in its response." |
362 | 362 | | payloadSize := 0 |
| skipped 97 lines |
460 | 460 | | // FORMERR MUST be returned." |
461 | 461 | | if payloadSize < maxUDPPayload { |
462 | 462 | | resp.Flags |= dns.RcodeFormatError |
463 | | - | log.Printf("FORMERR: requestor payload size %d is too small (minimum %d)", payloadSize, maxUDPPayload) |
| 463 | + | log.Printf("FORMERR: requester payload size %d is too small (minimum %d)", payloadSize, maxUDPPayload) |
464 | 464 | | return resp, nil |
465 | 465 | | } |
466 | 466 | | |
| skipped 232 lines |
699 | 699 | | { |
700 | 700 | | Name: dns.Name{}, |
701 | 701 | | Type: dns.RRTypeOPT, |
702 | | - | Class: queryLimit, // requestor's UDP payload size |
| 702 | + | Class: queryLimit, // requester's UDP payload size |
703 | 703 | | TTL: 0, // extended RCODE and flags |
704 | 704 | | Data: []byte{}, |
705 | 705 | | }, |
| skipped 197 lines |