-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: adding environment variable to set edns max message size #507
base: main
Are you sure you want to change the base?
Conversation
…he msg size value is larger than 65535
👋 Hello from a terraform-provider-dns maintainer. I'm happy to assist with this pull request. First, I'm curious if this change solves the problem. One way to verify: do you have a way to build this branch of the provider locally and test it with your DNS server and your Terraform configuration? Alternately, it would be helpful to confirm the size of the server's response for the exact same query. Perhaps using a command line tool such as |
@bbasata We do have access to BlueCat support. I can follow up on that on another thread. |
Sounds good. Also, is it possible that the response is larger than 65535 bytes? |
@bbasata We would need to get some detailed logging to determine if the response is greater than 65535 bytes. I have to coordinate with another Team to do that. This provider needs the ability to log those types of things. It's would be easier to enable debugging in the provider vs coordinating with another Team (i.e. Networking). Also, fyi, we have tried setting Other things I have tried:
|
@bbasata I work in a highly secure environment, and I am not able to build this locally and test it. |
Got it, no problem. We'll eliminate that one. Any info from BlueCat support on the "truncate TCP" behavior will be super helpful here. |
I'm looking into some options! |
I'm thinking we can log Let me know if this sounds helpful. |
@bbasata that would be great. It might also be helpful to log the message being returned from the dns system. |
We are encountering an issue where some runs error with
unknown transport: tcp
. This is due to the dns message coming back from our Dns Server (BlueCat
) with the Truncation flag set.provider.go
The code will retry with EDNS0 with a message size to the
DefaultMessageSize
. ThisDefaultMessageSize
is4096
bytes, but the dns library has a max message size of65535
.github.com/miekg/dns/dns.go
Since we are still getting the
unknown transport: tcp
after a retry, the dns response coming back fromBlueCat
is still larger than4096
bytes.This change is to create an Environment Variable (
DNS_UPDATE_EDNS_MSG_SIZE
) to allow setting the EDNS0 Message size to a value larger thanDefaultMsgSize
.