Skip to content
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

update dns lib #3995

Merged
merged 3 commits into from
Mar 28, 2018
Merged

update dns lib #3995

merged 3 commits into from
Mar 28, 2018

Conversation

preetapan
Copy link
Contributor

Based on PR #3978, with rebasing and fixing merge conflicts.

I ran this locally, used our soak tests that run service registration and DNS queries over TCP and UDP. Also checked prepared query execution via DNS.

pierresouchay and others added 3 commits March 28, 2018 10:23
See #3977

While trying to improve furthermore #3948 (This pull request is still valid since we are not using Compression to compute the result anyway).

I saw a strange behaviour of dns library.
Basically, msg.Len() and len(msg.Pack()) disagree on Message len.

Thus, calculation of DNS response is false consul relies on msg.Len() instead of the result of Pack()

This is linked to miekg/dns#453 and a fix has been provided with miekg/dns#454

Would it be possible to upgrade miekg/dns to a more recent function ?

Consul might for instance upgrade to a post 1.0 release such as https://github.com/miekg/dns/releases/tag/v1.0.4
@pierresouchay
Copy link
Contributor

+1 :)

@preetapan preetapan merged commit 3086b3b into master Mar 28, 2018
@preetapan preetapan deleted the f-update-dns-lib branch March 28, 2018 16:57
@pearkes pearkes added this to the 1.0.7 milestone Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants