diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2024-06-10 17:57:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-10 17:57:22 +0100 |
| commit | 6f2bae019f0fb30cbd2a4193c7c917a0c486eeed (patch) | |
| tree | b2a5b753137b9622eec9ae382aa76b674c0e828d /control/controlknobs/controlknobs.go | |
| parent | df865769898fcd0e8037784db7a99e31e510a57c (diff) | |
| download | tailscale-6f2bae019f0fb30cbd2a4193c7c917a0c486eeed.tar.xz tailscale-6f2bae019f0fb30cbd2a4193c7c917a0c486eeed.zip | |
cmd/k8s-nameserver: fix AAAA record query response (#12412)
Return empty response and NOERROR for AAAA record queries
for DNS names for which we have an A record.
This is to allow for callers that might be first sending an AAAA query and then,
if that does not return a response, follow with an A record query.
Previously we were returning NOTIMPL that caused some callers
to potentially not follow with an A record query or misbehave in different ways.
Also return NXDOMAIN for AAAA record queries for names
that we DO NOT have an A record for to ensure that the callers
do not follow up with an A record query.
Returning an empty response and NOERROR is the behaviour
that RFC 4074 recommends:
https://datatracker.ietf.org/doc/html/rfc4074
Updates tailscale/tailscale#12321
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
