-
Notifications
You must be signed in to change notification settings - Fork 999
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
Remove fqdn() function from libp2p-dns #2027
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that without fqdn()
, i.e. without (falsely) making all domains fully-qualified domains, we do two queries for each domain, even though one might suffice for fully-qualified domains? Put differently, this change has a performance impact only, while restoring correctness across all cases?
As far as I understand, yes |
@tomaka have you had the chance to test both the fully qualified and the not fully qualified case? |
I did not test this, as the fix seems obvious to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested this with a non fully qualified domain locally with DnsConfig::system()
which works as expected.
I can cut a new patch release of libp2p-dns
. Is that good enough for you @montekki?
Yeah as soon as we can propagate it into the |
Fix #2022
See this comment