-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
always use tcp for rfc2136 #3837
Conversation
|
Welcome @Protryon! |
Hi @Protryon. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
@Protryon please rebase to clear the failed Action |
@johngmyers Done, thanks. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Protryon, Raffo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
This PR removes the existing logic to use UDP or TCP for sending RFC2136 update queries, instead always using TCP.
The motivation behind this is to fix #3836. The DNS library used defers appending the TSIG signature until final serialization is complete (I used it as a reference implementation before, so am quite familiar). This results in the length check not using the proper packet length, but the pre-TSIG-length for determining TCP or UDP. Sending a UDP packet > 512 bytes for DNS is invalid (even if the network supports it), resulting in DNS servers discarding the packet as corrupt.
Rationale for completely removing UDP support here, is that the preceding AXFR uses TCP anyway (required by DNS protocol), and any performance gain from using UDP instead of TCP here is minuscule compared to the default one minute between sync times in external-dns.
Fixes #3836, #3204
I tested this fix in my cluster and confirmed the issue is fixed.